{"_id":"imf-oauth-user-sdk","_rev":"29-096294e3ce0f287000659a63b54eb5cc","name":"imf-oauth-user-sdk","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.4":{"name":"imf-oauth-user-sdk","version":"0.0.4","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/minysh/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@0.0.4","scripts":{},"_shasum":"31d50080ae3e191dbd67cbcb07e277e71ccd6ffc","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mg0432062","email":"mg0432062@gmail.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"}],"dist":{"shasum":"31d50080ae3e191dbd67cbcb07e277e71ccd6ffc","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-0.0.4.tgz","integrity":"sha512-q4PM3USxXa0wZupjnDWFn8hHhJJu/BPz7LBLFknmmdTWelqAury3pyd9qIJsnrvMxajdgWVRtBhWuhHHrC5UcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1N7qH9HIKjxkCjHTLKSYkhWa3rHrvXZjsxvcp50UnuAiEA/r2TvzX7pPFyzyX+9Rd/fGA2nBKbHo6OKj/0IC9pGVE="}]}},"0.0.5":{"name":"imf-oauth-user-sdk","version":"0.0.5","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/minysh/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@0.0.5","scripts":{},"_shasum":"43368a033d8a573e8bb8c120fb85237de02e68e2","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mg0432062","email":"mg0432062@gmail.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"}],"dist":{"shasum":"43368a033d8a573e8bb8c120fb85237de02e68e2","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-0.0.5.tgz","integrity":"sha512-lPmWhZbJ2WBvQpSE0LE5A1OBlqB+Qx4yN0Flbh4Rj945NSYWXlbGT4GBktqBfjVktMGSUm/nt1tkFfh9g/lpxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL2jHlsnTVJYc9jB//e+JrY+bUMrOEGXpA3FMDA1wMSQIgOcr5TVnbGLT0KfQe9CVapLl5wcgfKDLudV9yR8cJqR4="}]}},"0.0.6":{"name":"imf-oauth-user-sdk","version":"0.0.6","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/minysh/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@0.0.6","scripts":{},"_shasum":"bcae572fc1ba351b9372339f90dbce58e5fee1e0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mg0432062","email":"mg0432062@gmail.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"}],"dist":{"shasum":"bcae572fc1ba351b9372339f90dbce58e5fee1e0","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-0.0.6.tgz","integrity":"sha512-7CrsIOrxZjPPk6m0pyqr8rAuItKGWNW7tcxJpeDZtVE6iqXC88B+9LNRf1cmjq34v6MRiIPTSP1yuX4HasN0/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApJNMu4QMIPnC0rAX4OG3eTYok7H/v2o4dzk7d2lRHVAiEAoFWzwDxNnyCbm8cmr024raY9QE0vv2H+KuelJkq0c2c="}]}},"0.0.7":{"name":"imf-oauth-user-sdk","version":"0.0.7","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/minysh/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"gitHead":"fba993af3ad458b06ee23b7fec39fb2ee84a7cd5","_id":"imf-oauth-user-sdk@0.0.7","scripts":{},"_shasum":"d85a09149b5975108ab3c5bba98637a65e2dec9b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mg0432062","email":"mg0432062@gmail.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"}],"dist":{"shasum":"d85a09149b5975108ab3c5bba98637a65e2dec9b","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-0.0.7.tgz","integrity":"sha512-9KhEp6htpLRSSufZL2SfYh6gf7QG/n/8O4sgQKVL5aghy48j2pQQ7pEyW4grgUKRn9XGJ3IRt8DN63O3weIhsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDecpxxvWnmuaDtcgs5qQy4wCXiG8aj3iHV02lkxVpogAIhAPYJBVQtNvHaZwLQrwrRNIUv6w+K+R7JC5gxRjsSt0NI"}]}},"0.1.0":{"name":"imf-oauth-user-sdk","version":"0.1.0","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/bluemixmobilesdk/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@0.1.0","scripts":{},"_shasum":"936fe35ec419129ae57e2387ee3612f59eaf3b04","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mg0432062","email":"mg0432062@gmail.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"bluemixmobilesdk","email":"minysh@cn.ibm.com"}],"dist":{"shasum":"936fe35ec419129ae57e2387ee3612f59eaf3b04","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-0.1.0.tgz","integrity":"sha512-LmNcmm63AFYxup31kbVZF+stY8PZu+bfWruOx1uMHNVy4mno3uKLUdXxublrkheYjAmNtX9qJFNtXvVDUyuQvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSbJzh+PM2/S6fiw5ZUDLCnjnmI5T+61eOzAqkZsK/IgIgKsf+SKsfJsb57L8M3+bwpvF9b/PJNHoLBXufW18jASQ="}]}},"0.0.9":{"name":"imf-oauth-user-sdk","version":"0.0.9","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/minysh/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"gitHead":"8aecefefe2f1a38b0222326a5c9871693dbed7a3","_id":"imf-oauth-user-sdk@0.0.9","scripts":{},"_shasum":"70716aa5db93053e61b02c1ea60fcdd0eb8bfc62","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"}],"dist":{"shasum":"70716aa5db93053e61b02c1ea60fcdd0eb8bfc62","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-0.0.9.tgz","integrity":"sha512-Zl4AgdsWN1YZP+tOSMtjgeNguhhAVGW3Sujgxa6e6HdR2K4wpPH+PrgZe7zocXdaG45XxB7Y/TVdKNHdXxFdZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCg6UbWpmRpmb1Ml4roWLU+dH7b8igdekVwlejACJNXsAIgJVE1JmLGb/4IVvw4ViwhgU7XjakoZRcGNk4H2xFKXZA="}]}},"1.0.0":{"name":"imf-oauth-user-sdk","version":"1.0.0","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/bluemixmobilesdk/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@1.0.0","scripts":{},"_shasum":"f2d5888d866f534a35f180dc919e2ed420ac2829","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"}],"dist":{"shasum":"f2d5888d866f534a35f180dc919e2ed420ac2829","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-1.0.0.tgz","integrity":"sha512-h6l/8rHhnUWBmpIGxueHq1X7f7ANCnCHhJOvHFAqS1peffj3QmgnRYfpQDDnqPu4xPCppLJYppdVssZyM3N9Pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoNd/nAKyHSbEYSJc641S53KrMZdqPmJHX7s8OqacIjAIhALcymJs0//QhE0tpQsSvXgo/AEbUh9Yzon4PmFOsYgJ+"}]}},"1.0.1":{"name":"imf-oauth-user-sdk","version":"1.0.1","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/bluemixmobilesdk/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@1.0.1","scripts":{},"_shasum":"43673c52af27e83eeeb21628a53a2dbfcec474fd","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"}],"dist":{"shasum":"43673c52af27e83eeeb21628a53a2dbfcec474fd","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-1.0.1.tgz","integrity":"sha512-WGqLkmT8iwxJ5IBtnOaTTyyi92vJc+nCnXPgX3UJRvydJW0tnwxRM48ZyDu1l8kspmdoUe8mDTXy8aJrUkNOpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID32TjoEeMa+ZdOhvakDIwn7I0mGgVKmRGZxlRBFoFDoAiAQvLuRGER8vTi28p9fhqSlD8C2PFYxeqZ6tF3zYzzQPw=="}]}},"1.0.2":{"name":"imf-oauth-user-sdk","version":"1.0.2","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/bluemixmobilesdk/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@1.0.2","dist":{"shasum":"f7ad74112770ccf685cc990516dd04df8d03d878","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-1.0.2.tgz","integrity":"sha512-8Bdn9IM5FnABpIFYu1uOCiIc8VaNltjxWSSE1m6MSOWi1/IXmf+ZMbD2+tq9hCmKv0Ki1YRtO/362R7JJ3Er+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUEwq3ZwU18F0+l0Q3YRgklAJc13g9XJT6ZcD0oP6UHAIhALh4Fp2kJIU89Ea36AVq9pFr6kTqkZ7fGyW5WyCOVJCa"}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"}]},"1.0.3":{"name":"imf-oauth-user-sdk","version":"1.0.3","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/bluemixmobilesdk/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@1.0.3","scripts":{},"_shasum":"e1687a19876e85cbefcd2952a369d711778e7e1a","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"}],"dist":{"shasum":"e1687a19876e85cbefcd2952a369d711778e7e1a","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-1.0.3.tgz","integrity":"sha512-RxhGi7o5CnMU49l3JIHH0ovqeL4+iyPXsKytrQeWUfuSzHLRyL8BdScDTVONctR2vuo3KMMCarIa4jtAjnd2Bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKVwkNmyuRPE9mqsCxh5Wkxs8FRnsPt2zxEndiTcikxAiEAhxXldhMFSMW9j6DLwE6Po2+WPCkD1yNZrHPO2/yIAOY="}]}},"1.0.4":{"name":"imf-oauth-user-sdk","version":"1.0.4","description":"The imf-oauth-user-sdk module can be used to get the authorization from the IMF authorization server.","main":"./lib/index.js","repository":{"type":"git","url":"https://hub.jazz.net/git/bluemixmobilesdk/imf-oauth-user-sdk"},"licenses":[{"type":"IBM"}],"dependencies":{"q":"~1.0.1","underscore":"~1.6.0","jws":"~0.2.2","request":"~2.42.0","ibmbluemix":"*","base64url":"0.0.6","node-cache":"~1.0.0"},"devDependencies":{},"_id":"imf-oauth-user-sdk@1.0.4","scripts":{},"_shasum":"ba296663738ae2101b29ed3765ce8c738180f2f3","_from":"../../imf-oauth-user-sdk","_npmVersion":"2.0.0","_npmUser":{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"},"maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"}],"dist":{"shasum":"ba296663738ae2101b29ed3765ce8c738180f2f3","tarball":"https://registry.npmjs.org/imf-oauth-user-sdk/-/imf-oauth-user-sdk-1.0.4.tgz","integrity":"sha512-PnD3zbwGuzltXMn8TuLfxYOlwzrtK/wW0dOAsL0P8HADmSag/VggS7V0T7kDm6fUlgTgCYTH/XTtB/bbheUIYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfsxGEtOfnF55GoRkmAD48z8I4WlIctjocjhxrW4tmTAiAB6IZXs8muYuIVu89WBA4xkyBQQe7VbvJXkyTT28VoUw=="}]}}},"readme":"#Using the imf-oauth-user-sdk npm module obtain an authorization header\n\n\nThe imf-oauth-user-sdk npm module enables you to obtain an authorization header from the IMF authorization server. You can later add this header to outgoing requests in order to pass the token validation with module [passport-imf-token-validation](https://www.npmjs.com/package/passport-imf-token-validation)\n\n## Installation\n``` bash\n  $ npm install imf-oauth-user-sdk\n```\n\n## Get IMF Authorization Header\nBy using `getAuthorizationHeader` API, the SDK will use the clientid and secret from VCAP environemnt variable and generate an access token on behalf of this mobile backend application.\n\n``` js\nvar express = require('express'),\n    imf = require('imf-oauth-user-sdk');\n\nvar app = express();\n\napp.get('/hello',\n\tfunction(req, res) {\n\t\timf.getAuthorizationHeader({cacheSize:100}).then(function(token) {\n\t\t\tres.send(200, token);\n\t\t}, function(err) {\n\t\t\tconsole.log(err);\n\t\t});\n});\n\n```\n\n## Propagation\nBy using `getAuthorizationHeaderFromIncomingRequest` API, the SDK will retrieve the authorization header from incoming request. You can attach this authorization header to any outgoing request to access other IMF services.\n\n``` js\nvar express = require('express'),\n    imf = require('imf-oauth-user-sdk');\n\nvar app = express();\n\napp.get('/hello',\n\tfunction(req, res) {\n        // obtain authorization header from incoming request\n\t\tvar authorization = imf.getAuthorizationHeaderFromIncomingRequest(req);\n\t\tres.send(200, authorization);\n\t});\n\n```\n\n## License\nThis package contains sample code provided in source code form. The samples are licensed under the under the Apache License, Version 2.0 (the \"License\").  You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 and may also view the license in the license.txt file within this package.  Also see the notices.txt file within this package for additional notices.\n","maintainers":[{"name":"mg0432062","email":"mg0432062@gmail.com"},{"name":"ibmmobilecloud","email":"mobilec@us.ibm.com"}],"time":{"modified":"2022-06-19T00:42:14.295Z","created":"2014-11-12T06:08:54.486Z","0.0.4":"2014-11-12T06:08:54.486Z","0.0.5":"2014-11-12T06:19:49.030Z","0.0.6":"2014-11-13T12:22:31.151Z","0.0.7":"2014-11-18T02:11:40.548Z","0.1.0":"2014-11-20T04:32:12.080Z","0.0.9":"2014-11-21T14:26:28.095Z","1.0.0":"2014-11-21T14:27:16.021Z","1.0.1":"2014-12-01T21:44:44.227Z","1.0.2":"2014-12-12T16:00:47.653Z","1.0.3":"2014-12-19T15:36:33.380Z","1.0.4":"2015-03-26T17:56:48.310Z"},"repository":{"type":"git","url":"https://hub.jazz.net/git/bluemixmobilesdk/imf-oauth-user-sdk"},"readmeFilename":"README.md"}