{"_id":"@bcoe/npme-auth-oauth2-restricted","_rev":"7-e380ac848a2abac7c1b8995980ad7790","name":"@bcoe/npme-auth-oauth2-restricted","description":"auth strategy for OAuth 2.0 SSO.","dist-tags":{"latest":"1.4.0","beta":"1.3.2-beta.0"},"versions":{"1.2.0":{"name":"@bcoe/npme-auth-oauth2-restricted","version":"1.2.0","description":"auth strategy for OAuth 2.0 SSO.","main":"index.js","scripts":{"pretest":"standard","test":"tap --timeout=5000 --coverage ./test/*","release":"standard-version"},"repository":{"type":"git","url":"git+ssh://git@github.com/npm/npme-auth-oauth2.git"},"keywords":["sso","npme","npm","auth","strategy"],"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"license":"ISC","bugs":{"url":"https://github.com/npm/npme-auth-oauth2/issues"},"homepage":"https://github.com/npm/npme-auth-oauth2#readme","dependencies":{"lodash":"^4.14.1","redis":"^2.1.0","request":"^2.74.0","simple-oauth2":"^0.8.0","uuid":"^2.0.2"},"devDependencies":{"chai":"^3.5.0","nock":"^8.0.0","standard":"^7.1.2","standard-version":"^2.4.0","tap":"^6.3.0"},"_id":"@bcoe/npme-auth-oauth2-restricted@1.2.0","_shasum":"70d84daae4c75a29a53f5c50113673b93123b757","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"bcoe","email":"ben@npmjs.com"},"dist":{"shasum":"70d84daae4c75a29a53f5c50113673b93123b757","tarball":"https://registry.npmjs.org/@bcoe/npme-auth-oauth2-restricted/-/npme-auth-oauth2-restricted-1.2.0.tgz","integrity":"sha512-WjyvKDLf7OUsQB4P8hDR6eWt6cMgXk7eNucGmtq3gytFPMrjL+jTGQAD34lTPYRq//kGOV27vxRUFZb2pVYiag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmE1RWSHuxd9h8CgVbFhbeF/VcGaqYpY7ofwmHUM+eXAiEAvfNK61Uw0r37WTJ8I3AE63dgUnpBDcQrnxCfO2coZKg="}]},"maintainers":[{"name":"bcoe","email":"ben@npmjs.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/npme-auth-oauth2-restricted-1.2.0.tgz_1490208538973_0.6009016493335366"}},"1.3.0":{"name":"@bcoe/npme-auth-oauth2-restricted","version":"1.3.0","description":"auth strategy for OAuth 2.0 SSO.","main":"index.js","scripts":{"pretest":"standard","test":"tap --timeout=5000 --coverage ./test/*.js","release":"standard-version"},"repository":{"type":"git","url":"git+ssh://git@github.com/npm/npme-auth-oauth2.git"},"keywords":["sso","npme","npm","auth","strategy"],"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"license":"ISC","bugs":{"url":"https://github.com/npm/npme-auth-oauth2/issues"},"homepage":"https://github.com/npm/npme-auth-oauth2#readme","dependencies":{"lodash":"^4.14.1","redis":"^2.1.0","request":"^2.74.0","simple-oauth2":"^0.8.0","uuid":"^2.0.2"},"devDependencies":{"chai":"^3.5.0","nock":"^8.0.0","standard":"^7.1.2","standard-version":"^2.4.0","tap":"^10.3.0"},"gitHead":"2cc7621db0f2cd8bd1f837a33e17f9c604635674","_id":"@bcoe/npme-auth-oauth2-restricted@1.3.0","_shasum":"6e7bfd80ebc1f365e2e11ba060817de550998a19","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"bcoe","email":"ben@npmjs.com"},"dist":{"shasum":"6e7bfd80ebc1f365e2e11ba060817de550998a19","tarball":"https://registry.npmjs.org/@bcoe/npme-auth-oauth2-restricted/-/npme-auth-oauth2-restricted-1.3.0.tgz","integrity":"sha512-6UQGLMMZwnxobmEZfwxYYG7crn3jh1AeIsfORJHZ4QAlxpgwdWwwPJKwShkplnj/FYxNbWWHCVYO1g+fALU04g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuYxPb6ntuVYQLEx/2AaQ9cnfPk4JVpUi3aXnBXnlbAAiBO7hbx49y7xAF7+N6H+fxJE1mlN9b7aEX17H52gaxRMQ=="}]},"maintainers":[{"name":"bcoe","email":"ben@npmjs.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/npme-auth-oauth2-restricted-1.3.0.tgz_1490209563757_0.23855263413861394"}},"1.3.1":{"name":"@bcoe/npme-auth-oauth2-restricted","version":"1.3.1","description":"auth strategy for OAuth 2.0 SSO.","main":"index.js","scripts":{"pretest":"standard","test":"tap --timeout=5000 --coverage ./test/*.js","release":"standard-version"},"repository":{"type":"git","url":"git+ssh://git@github.com/npm/npme-auth-oauth2.git"},"keywords":["sso","npme","npm","auth","strategy"],"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"license":"ISC","bugs":{"url":"https://github.com/npm/npme-auth-oauth2/issues"},"homepage":"https://github.com/npm/npme-auth-oauth2#readme","dependencies":{"lodash":"^4.14.1","redis":"^2.1.0","request":"^2.74.0","simple-oauth2":"^0.8.0","uuid":"^2.0.2"},"devDependencies":{"chai":"^3.5.0","nock":"^8.0.0","standard":"^7.1.2","standard-version":"^2.4.0","tap":"^10.3.0"},"gitHead":"734d9af7378041f19df742807327e5821731bded","_id":"@bcoe/npme-auth-oauth2-restricted@1.3.1","_shasum":"b74f581269cdf876ce3cc4d3c042bb733d0839fb","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.9.5","_npmUser":{"name":"bcoe","email":"ben@npmjs.com"},"dist":{"shasum":"b74f581269cdf876ce3cc4d3c042bb733d0839fb","tarball":"https://registry.npmjs.org/@bcoe/npme-auth-oauth2-restricted/-/npme-auth-oauth2-restricted-1.3.1.tgz","integrity":"sha512-1Ha0UOJtPTbP8d4IXJ0JmBGKMK8lm/7pS6Cy0rD9Qpkls/2sRTBbV022fzZsdclRGCy49W0InQhbgFpSMfl0dQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmZgvEeKw5tJGjLT9YRBGyaBYRdj0wF4+YvaDGPRfdvgIgDKdjXqIQD2KemuWaEmj2DMm1nF7ZZZZIWD/IiMGHXio="}]},"maintainers":[{"name":"bcoe","email":"ben@npmjs.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/npme-auth-oauth2-restricted-1.3.1.tgz_1490212156831_0.49607919133268297"}},"1.3.2-beta.0":{"name":"@bcoe/npme-auth-oauth2-restricted","version":"1.3.2-beta.0","description":"auth strategy for OAuth 2.0 SSO.","main":"index.js","scripts":{"pretest":"standard","test":"tap --timeout=5000 --coverage ./test/*.js","release":"standard-version"},"repository":{"type":"git","url":"git+ssh://git@github.com/npm/npme-auth-oauth2.git"},"keywords":["sso","npme","npm","auth","strategy"],"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"license":"ISC","bugs":{"url":"https://github.com/npm/npme-auth-oauth2/issues"},"homepage":"https://github.com/npm/npme-auth-oauth2#readme","dependencies":{"lodash":"^4.14.1","redis":"^2.1.0","request":"^2.74.0","simple-oauth2":"^0.8.0","uuid":"^2.0.2"},"devDependencies":{"chai":"^3.5.0","nock":"^8.0.0","standard":"^7.1.2","standard-version":"^2.4.0","tap":"^10.7.2"},"gitHead":"4c08a58152cfb120e785464d62ccf40e09a05a5a","_id":"@bcoe/npme-auth-oauth2-restricted@1.3.2-beta.0","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"bcoe","email":"ben@npmjs.com"},"dist":{"integrity":"sha512-jBNgIjGqJUJinuHcCJPLzoEvVC39ITNtYcqyqMYFu7YiRRWx3/h5PUkAhpVytZKyHicNDhiyyoVFhuT3O6FJEg==","shasum":"5f582750222db7a0127ccb4f0d5195a4a057c6bb","tarball":"https://registry.npmjs.org/@bcoe/npme-auth-oauth2-restricted/-/npme-auth-oauth2-restricted-1.3.2-beta.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOtlKNiq8xnT+NsWAXNf/QKaHcoYkhgLH6QxswJWQs/AiBLy3DKtjETNCJGHpnVqyKUa5KlRCDv3VCyEM2G5QYBJQ=="}]},"maintainers":[{"name":"bcoe","email":"ben@npmjs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npme-auth-oauth2-restricted-1.3.2-beta.0.tgz_1507671370767_0.5838757380843163"}},"1.4.0":{"name":"@bcoe/npme-auth-oauth2-restricted","version":"1.4.0","description":"auth strategy for OAuth 2.0 SSO.","main":"index.js","scripts":{"pretest":"standard","test":"tap --timeout=5000 --coverage ./test/*.js","release":"standard-version"},"repository":{"type":"git","url":"git+ssh://git@github.com/npm/npme-auth-oauth2.git"},"keywords":["sso","npme","npm","auth","strategy"],"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"license":"ISC","bugs":{"url":"https://github.com/npm/npme-auth-oauth2/issues"},"homepage":"https://github.com/npm/npme-auth-oauth2#readme","dependencies":{"lodash":"^4.14.1","redis":"^2.1.0","request":"^2.74.0","simple-oauth2":"^0.8.0","uuid":"^2.0.2"},"devDependencies":{"chai":"^3.5.0","nock":"^8.0.0","standard":"^7.1.2","standard-version":"^2.4.0","tap":"^10.7.2"},"gitHead":"32f97ca1cade29ec720279aeee193beb5822513b","_id":"@bcoe/npme-auth-oauth2-restricted@1.4.0","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"bcoe","email":"ben@npmjs.com"},"dist":{"integrity":"sha512-JJjevJnU7ecVoryZBlDqzTYQd+oPtWcTmGNS2lumR+4NqD2ZL3EvNFArLW2cuf8NogDn5bFoz9AvyaPU/hjC0Q==","shasum":"e6d40d4865f96dffe96b2f218270f820e3ff31dd","tarball":"https://registry.npmjs.org/@bcoe/npme-auth-oauth2-restricted/-/npme-auth-oauth2-restricted-1.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtnA8cYEOV4lqCzI8TGro130xeC3JCdrl4m5v8unxTqQIgLWcuUlsWqgsaBpR4+tEdqxcfDa1BnT0TEZk5Gq+ncdI="}]},"maintainers":[{"name":"bcoe","email":"ben@npmjs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npme-auth-oauth2-restricted-1.4.0.tgz_1507752961951_0.03457320458255708"}}},"readme":"# npme-auth-oauth2\n\n[![Build Status](https://travis-ci.org/npm/npme-auth-oauth2.png)](https://travis-ci.org/npm/npme-auth-oauth2)\n[![Coverage Status](https://coveralls.io/repos/npm/npme-auth-oauth2/badge.svg?branch=master)](https://coveralls.io/r/npm/npme-auth-oauth2?branch=master)\n\nauth strategy for OAuth2 SSO.\n\n# Instructions\n\n> Note: The whitelist file and plugin should both be saved/installed to the Miscellaneous Data Files folder as you've configured it for your npmE instance.\n\n> The default is `/usr/local/lib/npme/data`\n\n## Installation\n\nThe change directory command may be different based on your configuration (see note above).\n\n```shell\ncd /usr/local/lib/npme/data\nsudo npm i @bcoe/npme-auth-oauth2-restricted\n\n```\n\n## Configuration\n\nGo to your npm Enterprise admin console (on port 8800 of your server), select the `Settings` tab and then choose the `OAuth2` option under the `Authentication` section. Fill out the configuration fields for your OAuth provider and click `Save` to apply your setting.\n\n\nNext, switch to `Custom` for Authentication and populate each of the plugin settings as `/etc/npme/data/node_modules/@bcoe/npme-auth-oauth2-restricted`:\n\n|Config Field           |Config Value|\n|-----------------------|------------|\n|Authorization plugin  | /etc/npme/data/node_modules/@bcoe/npme-auth-oauth2-restricted  |\n|Authentication plugin | /etc/npme/data/node_modules/@bcoe/npme-auth-oauth2-restricted  |\n|Session plugin        | /etc/npme/data/node_modules/@bcoe/npme-auth-oauth2-restricted  |\n\nClick `Save` a final time to apply these settings.\n\n## Whitelist\n\nCreate the whitelist file, `user-whitelist.txt` in the `Misecellaneous Data Files` directory (ex: `/usr/local/lib/npme/data`).\n\nEach user that you want to have access to npmE must be listed on a separate line, by their email address.\n\n## Restart Your Instance\n\nNavigate to your instance's dashboard and use the buttons to stop and restart the instance. After the restart, only users in the whitelist file will be permitted to authenticate.","maintainers":[{"name":"bcoe","email":"ben@npmjs.com"}],"time":{"modified":"2022-06-12T15:05:28.728Z","created":"2017-03-22T18:48:59.282Z","1.2.0":"2017-03-22T18:48:59.282Z","1.3.0":"2017-03-22T19:06:04.353Z","1.3.1":"2017-03-22T19:49:18.771Z","1.3.2-beta.0":"2017-10-10T21:36:10.830Z","1.4.0":"2017-10-11T20:16:02.019Z"},"homepage":"https://github.com/npm/npme-auth-oauth2#readme","keywords":["sso","npme","npm","auth","strategy"],"repository":{"type":"git","url":"git+ssh://git@github.com/npm/npme-auth-oauth2.git"},"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"bugs":{"url":"https://github.com/npm/npme-auth-oauth2/issues"},"license":"ISC","readmeFilename":"README.md"}