{"_id":"passport-atlassian-oauth2","_rev":"4-324f8d78bacdfe0fd46fcad8bfcf570a","name":"passport-atlassian-oauth2","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"passport-atlassian-oauth2","version":"1.0.0","description":"Passport strategy for authenticating with Atlassian (Jira) using OAuth 2 (3LO)","main":"lib/strategy.js","license":"MIT","author":{"name":"Yevhenii Baraniuk","url":"https://github.com/jsarafajr"},"repository":{"type":"git","url":"git+https://github.com/jsarafajr/passport-atlassian-oauth2.git"},"bugs":{"url":"https://github.com/jsarafajr/passport-atlassian-oauth2/issues"},"keywords":["passport","atlassian","jira","auth","auth2","oauth","authentication","3lo"],"dependencies":{"passport-oauth2":"^1.4.0"},"devDependencies":{"eslint":"^5.5.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0","express":"^4.16.3","passport":"^0.4.0"},"gitHead":"13d3cce51a8e68a5ac4bd109ed59774bf8ee3b98","homepage":"https://github.com/jsarafajr/passport-atlassian-oauth2#readme","_id":"passport-atlassian-oauth2@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.4.1","_npmUser":{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"},"dist":{"integrity":"sha512-ooUE+k5eAsUHuS9otiPblIqLsyF4yQm5q5Wg758xksLGXpacyeOFpwPPfGWcvpyy7M+O9mj1GIrZChzBqkU8zA==","shasum":"6b0401beaf44aff788094ed381e41176f2620e6e","tarball":"https://registry.npmjs.org/passport-atlassian-oauth2/-/passport-atlassian-oauth2-1.0.0.tgz","fileCount":6,"unpackedSize":9298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmlkXCRA9TVsSAnZWagAAT6gP/iN4YgZ0ryeEruCbRQh8\nT9I6QbPVuOEx6nq5cWWEQmbGlOD5vKTewK8GT6Uvsjx8i2bMXeg783tKXlOz\n9f5QbvRk8wxKY3lm36PC1qi6cv7P1LyPzJnCKyCGj+c4nObWhCAIi6120Ckt\nSNa3WGe+C17d/zz7mn8Bx5dwjeBt7Z3NCF9m2/BZjuAqTZIAgDD7SzZG58mJ\ngUjMxrg4Da2RTvQYq7zQOhYUjs++D6TX52JswbE1g7dQNyQq3TDFmryrBiUb\nvCzvb0EPOfOcpfYm2veP/VVTWowTZyufbBFraf9fNWnnGAgWVPVVIy3sEOmN\nOSogh6AkSaxroDxnme5G32D4YFdPLgK3gaOtZlhrvMHQeyTtdkZj2Q2bXFey\ncbeVYYYsZ7eHflCJ8v0kTrieJx1eqLYUjQbmk8Mtok5TfekM5SByMQ/Dtbts\nH/NwGQLj/1MOOd0isWmsoGEWMU4NchB1CWwapLpUbGP42y1yKSuOYIfDgMaw\n8PR5/G2YVkYD6Xf8sZHn7H745AmjLz8gX16G+aSkaNl3wByNGXrHMubZrA3H\nM+bRfaoBtAk75DlyhLAvF3VJ+jxNVoD/swqUiv3+62pIDTFXby1PosQLI4po\nDdSIkUC4vC0RMzhMmEg+UPPfjtYQ0tRqvRAVOaILD0KkZvjFVWJShqa1w718\n+1wc\r\n=Bu4C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFG5UtPfCrC4xj5TwyIQNk0fxrFwWYXjzO0pNrqKAFjwAiBg+P5hBLLTsAF1ThTHTYiN7/JtX4J4osi6qhGW5iKqNw=="}]},"maintainers":[{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-atlassian-oauth2_1.0.0_1536842006354_0.2980737451155473"},"_hasShrinkwrap":false},"1.0.1":{"name":"passport-atlassian-oauth2","version":"1.0.1","description":"Passport strategy for authenticating with Atlassian (Jira) using OAuth 2 (3LO)","main":"lib/strategy.js","license":"MIT","author":{"name":"Yevhenii Baraniuk","url":"https://github.com/jsarafajr"},"repository":{"type":"git","url":"git+https://github.com/jsarafajr/passport-atlassian-oauth2.git"},"bugs":{"url":"https://github.com/jsarafajr/passport-atlassian-oauth2/issues"},"keywords":["passport","atlassian","jira","auth","auth2","oauth","authentication","3lo"],"dependencies":{"passport-oauth2":"^1.4.0"},"devDependencies":{"eslint":"^5.5.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0","express":"^4.16.3","passport":"^0.4.0"},"gitHead":"6e6daed6be6af1f12a1fef13e7e6614d2ce163fe","homepage":"https://github.com/jsarafajr/passport-atlassian-oauth2#readme","_id":"passport-atlassian-oauth2@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"},"dist":{"integrity":"sha512-owUp51CKInyOBhQ8Swxnp7Hy+Penmjo9N0fFiPNqYcFhnVuWBVH3wJmJ70XtdBB0tNxPXQZi1x9asc1Qnd/yOg==","shasum":"7e4a4e2d6236e168ac1cbed9d88591f068e1bc38","tarball":"https://registry.npmjs.org/passport-atlassian-oauth2/-/passport-atlassian-oauth2-1.0.1.tgz","fileCount":6,"unpackedSize":9290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4EmZCRA9TVsSAnZWagAAzmkP/0D3HMPR+RYzS9RkQx61\nmUJ4Id69UsaUZzpvKVX2H5r4niXQJja6mPTsoy+nzEA801za9l0yDTyo940o\n469KrjjJ+6sv/XGq1osw3jNKuTeAPgYt4I/Oo98JYY19MunMHuuABqf5Ta7V\ndLGhoxH+9M9cH6Y8Wy0TiMQMVjjnWiVjM78+Z2HqTKA3bALIe/VuGj9C1mr4\n2YTxqCOb0AYnGna80u/HSpK9wOTMw5KriMdS9+JZo7iOBUqyp8xCU8Btl4ex\nRoBitzRIWrcliptVr4dIWndMmvUEU4i+ffwf96DjPyGtJ2RULHpfDVK1TKWq\njvgbgA9eDdCimmPzBB9yxkTFem1qLrnr3sRpFtn3pXQ9luvYdYwhUB1+ZP1m\nRudCdsmPwVWTCo5EP71sg1uMSA2MTCIZ/NOW9W524ZuJBcgOIfUL/GRlTfXW\n1VhcyHyuXLBpMu9WNgM8CeIcy6an+BlIY888/licagoxW5aQx/pB0PYuswsz\nruCBs0tzw/PtNgf0xPIpUVpINItdMScOSQa5NpgEDDz76TGimpAsl0LCNmbL\nql36/owJbceOnm+lqtQYYDY9H7lcPG4iauTDnsyWFtfCY4pN3wpqB7uNXOFl\nXJGRCtb8aj/OxF5XsDGRIMaLUiMqioqDVPM337XTWwos0CD0F+fg6WDljNjF\nfSPV\r\n=t0NN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS3Sy6q4ZZV9mkg/7s62vNhf3C9UvijnqHRKHW1EixnAIgZmFmfYzfs8TFxiZ3Ki635ZiQXX+2Wv+xbF7sMSJN17s="}]},"maintainers":[{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-atlassian-oauth2_1.0.1_1541425560460_0.32254572993320485"},"_hasShrinkwrap":false},"2.0.0":{"name":"passport-atlassian-oauth2","version":"2.0.0","description":"Passport strategy for authenticating with Atlassian (Jira) using OAuth 2 (3LO)","main":"lib/strategy.js","license":"MIT","author":{"name":"Yevhenii Baraniuk","url":"https://github.com/jsarafajr"},"repository":{"type":"git","url":"git+https://github.com/jsarafajr/passport-atlassian-oauth2.git"},"bugs":{"url":"https://github.com/jsarafajr/passport-atlassian-oauth2/issues"},"keywords":["passport","atlassian","jira","auth","auth2","oauth","authentication","3lo"],"scripts":{"lint":"eslint ."},"dependencies":{"passport-oauth2":"^1.4.0"},"devDependencies":{"eslint":"^6.4.0","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.14.0","express":"^4.16.3","passport":"^0.4.0"},"gitHead":"6f054889283fe7a9e2eb05b538ae387cbdce0d04","homepage":"https://github.com/jsarafajr/passport-atlassian-oauth2#readme","_id":"passport-atlassian-oauth2@2.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-VG+EB4/JW8F5br1m54hjLTTi+3ujNDjz4xj7nrIiisnuw4bvfkkd/oApl2oKoLd9Vh2f4+pXxDcZm7r9jZQLuA==","shasum":"ff224d8793d3f2431e4c3fa73fd0d65fe8e3ca55","tarball":"https://registry.npmjs.org/passport-atlassian-oauth2/-/passport-atlassian-oauth2-2.0.0.tgz","fileCount":7,"unpackedSize":10527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjLrwCRA9TVsSAnZWagAANcEP/ie2xY/ev8/JumcDVHu1\nNRBM1hBajgVFZAS7lwYwz4y124ML7+Jf1uMZckE0Va77qKmMNKnRYX5RyqD/\ncj6mHrTPLnajigCpypbRVWzf7CxEovidGREBLnSMTUeaCyCz+C0VLBSh8tHM\nOM10zz9Pxawe1QSOCbSVUaryBh12T6+QFie6KlazrHknnh+7g8zhgnNWA/fb\n+/DiWPcDrfDEp6BCEH8QgNorD5OEe/KlSvm9+/ZmoLheLbIQALfKUfVB5SXC\nX69cplvDb9UwFd2l+SRxgBqGkxjr02f6jU0seO/GdNDNcV65hE8aP97h+OiY\nSpbK8CWv83uf3y5jSwOOSAqdfURxTu51iRHzi34AwLDGKowv4cqx7g3OBaSO\nVIOTjh7Q8AtaavdBV2JSvXbLA1WBpCK/NP22kJ80BDpb4xiK9AWUQwDiwdAL\njBmlw0v+Q7aZ1vcfL6cbjZwfz2OD5swYFcvkX7ioosyQ/YcnJlVzZ8J7ZfZS\nMMX7ffGeQjjO4lCdIQ/3OcYbmAbK242jOBbHVUwrspnB3RbHdQO/LRFKGP9Q\neyXzZ+eTJLZ++tbUWnLWrWa21PBpbNt7NLYf4+stAq8n81XpTcFGc47N0189\n5QakZcOIEZYzJADeaSwm/micg75lr4v8YZZ7dz6EHypToKuVytwpNku8Pv5n\nGXcC\r\n=al42\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCceVHy53XX65HucoafaUZwbwT1e2e5HMUGmw19tYgnmQIhAJZH2X20o6yLTTQOj/AAv2IS1OhkRsQLtOchF9c82R47"}]},"maintainers":[{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"}],"_npmUser":{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-atlassian-oauth2_2.0.0_1569503983812_0.6023640852531809"},"_hasShrinkwrap":false},"2.1.0":{"name":"passport-atlassian-oauth2","version":"2.1.0","description":"Passport strategy for authenticating with Atlassian (Jira) using OAuth 2 (3LO)","main":"lib/strategy.js","license":"MIT","author":{"name":"Yevhenii Baraniuk","url":"https://github.com/jsarafajr"},"repository":{"type":"git","url":"git+https://github.com/jsarafajr/passport-atlassian-oauth2.git"},"bugs":{"url":"https://github.com/jsarafajr/passport-atlassian-oauth2/issues"},"keywords":["passport","atlassian","jira","auth","auth2","oauth","authentication","3lo"],"scripts":{"lint":"eslint ."},"dependencies":{"passport-oauth2":"^1.4.0"},"devDependencies":{"eslint":"^6.4.0","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.14.0","express":"^4.16.3","passport":"^0.4.0"},"gitHead":"ee4241f617ca9c963cdd5e2933d98c5ca0e9e19b","homepage":"https://github.com/jsarafajr/passport-atlassian-oauth2#readme","_id":"passport-atlassian-oauth2@2.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-uUjdoeeA0qqEedj14LzeAFGyK/eesPezQfdN1ui/7D8TYNCGVtuoYhKT64gT8KhOCz5nPYS12XWXRfoPTS6kpg==","shasum":"8043ced378ca002055ac0ea0e4cb2198692acb07","tarball":"https://registry.npmjs.org/passport-atlassian-oauth2/-/passport-atlassian-oauth2-2.1.0.tgz","fileCount":7,"unpackedSize":10524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlDEOCRA9TVsSAnZWagAAClQP/1MFL0fGzwz9/2rOn3h+\niSg8G4DeXieiyR2W6jKo+zkqYv4DnMv5O/U03o31m6tc+MImcXP1nvQfDxj2\nWI4fzdqRgZUZWcCshLY3L8CgPkY14fBz9BFeAWT/ag4G2MZxRtA5D2cCsTMW\n3qCvdkHDMPXFeM2Ks4oBPPVRfn7ch907lYtxRFb5S+RLo2GBiEy0vmjWQgL8\nar8WO9/JB7fdPCK3LEVTA3LwRpxPxZK2u9WDpczny+OmmLq1x/NQAw7MjCZj\nV4oWhU7ugY6TLETEwwlWyFzAcjeb4HrDoP2dt0sBz4A6zhdWjWh9kBuP07TX\nkUkqpmHG3C2Vo/05ajJdy4fjCYIhplheiwfo5PJnXDX7k3GqrOywuTLEaP0w\ngrlr2NTfZXdTxtkb+QoYeSsgqHxqJSzdxW8gaEdqFM6yEEh9i7iue21TXHse\nN2rJgUt9e8ZGrr0P/+b4ITRAAVOuILT7GVArwBoaJ1oyRyNyNHNuXNFcvkXg\nv1+mQtxA5xMb7SKXM97UTwvf381d9yKpyOgKLAEgNhozS/2ImOFKQuSZrF2h\nSFBrTG4MZIY1psmTtvkraUcGcaxj9CKSu5owejOA6aKJpppKM97QYq3/Nz1g\nvu5dFtZz9lnl4NEW6ctMSNngnAerwKi9c4Nv9Qut5722cy/cM7B6s0XquFzU\nC+HS\r\n=0axS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBw/ZN2gEKo7r0kW8uLMHdOqwfb93gaFBK/8rAyT8i5dAiBlhQdgC36sv4hHdEeHHcKxDIUYPll5eUEKse/fVPDxsw=="}]},"maintainers":[{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"}],"_npmUser":{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-atlassian-oauth2_2.1.0_1569992974068_0.5180394015771841"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-13T12:33:26.353Z","1.0.0":"2018-09-13T12:33:26.490Z","modified":"2022-05-12T15:31:47.613Z","1.0.1":"2018-11-05T13:46:00.615Z","2.0.0":"2019-09-26T13:19:43.976Z","2.1.0":"2019-10-02T05:09:34.225Z"},"maintainers":[{"name":"jsarafajr","email":"ev.baraniuk@gmail.com"}],"description":"Passport strategy for authenticating with Atlassian (Jira) using OAuth 2 (3LO)","homepage":"https://github.com/jsarafajr/passport-atlassian-oauth2#readme","keywords":["passport","atlassian","jira","auth","auth2","oauth","authentication","3lo"],"repository":{"type":"git","url":"git+https://github.com/jsarafajr/passport-atlassian-oauth2.git"},"author":{"name":"Yevhenii Baraniuk","url":"https://github.com/jsarafajr"},"bugs":{"url":"https://github.com/jsarafajr/passport-atlassian-oauth2/issues"},"license":"MIT","readme":"# passport-atlassian-oauth2\n\n[![Build Status](https://travis-ci.org/jsarafajr/passport-atlassian-oauth2.svg?branch=master)](https://travis-ci.org/jsarafajr/passport-atlassian-oauth2) [![Greenkeeper badge](https://badges.greenkeeper.io/jsarafajr/passport-atlassian-oauth2.svg)](https://greenkeeper.io/)\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Atlassian](https://atlassian.com) services using OAuth 2 3LO (three-legged OAuth).\n\n*NOTE: Currently, only Jira supports Atlassian Oauth 2 authorization code grants (3LO).*\n\n\n## Install\n```shell\n$ npm install passport-atlassian-oauth2\n```\n\n## Usage\n\n#### Create Application\n\nBefore using `passport-atlassian-oauth2` you must register an application within [App Management](https://developer.atlassian.com/apps/). If you don't have one follow [\"Enabling OAuth 2.0 authorization code grants\"](https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/#enabling-oauth-2-0--3lo-) instructions from Jira documentation page.\n\n⚠️Important: \"User identity API\" should be enabled in App Management for this strategy to work if you're interested in getting profile information such as name, url, etc. Otherwise, pass `skipUserProfile: true` in strategy constructor options.\n\n#### Configure Strategy\n\nThe client ID and secret obtained when creating an application are supplied as options when creating the strategy.\n\n```js\nconst AtlassianStrategy = require('passport-atlassian-oauth2');\n\npassport.use(new AtlassianStrategy({\n    clientID: '<ATLASSIAN_CLIENT_ID>',\n    clientSecret: '<ATLASSIAN_CLIENT_SECRET>',\n    callbackURL: 'http://localhost:8080/auth/atlassian/callback',\n    scope: 'offline_access read:jira-user',\n  },\n  (accessToken, refreshToken, profile, cb) => {\n    // optionally save profile data to db\n    done(null, profile);\n  }\n));\n```\n\nSee complete Express.js example [here](https://github.com/jsarafajr/passport-atlassian-oauth2/tree/master/examples/express.js). \n\n## Sample Profile\n```json\n{\n  \"id\": \"552048:ccc138d6-d39f-1337-93ca-888ff2s05d9e\",\n  \"displayName\": \"Yevhenii Baraniuk\",\n  \"email\": \"yevhenii@example.com\",\n  \"photo\": \"https://avatar-cdn.atlassian.com/21kfjvu62hmkvo3ikdlqo48755?by=hash\",\n  \"provider\": \"atlassian\",\n  \"accessibleResources\": [\n    {\n      \"id\": \"3942d640-b74e-11e8-96f8-529269fb1459\",\n      \"name\": \"awesome-jira\",\n      \"url\": \"https://awesome-jira.atlassian.net\",\n      \"scopes\": [\"read:jira-user\"],\n      \"avatarUrl\": \"https://site-admin-avatar-cdn.prod.public.atl-paas.net/avatars/240/trophy.png\"\n    },\n    {\n      \"id\": \"eff705b1-5cd8-40d1-ac46-9a9516cbc527\",\n      \"name\": \"super-product\",\n      \"url\": \"https://super-product.atlassian.net\",\n      \"scopes\": [\"read:jira-user\"],\n      \"avatarUrl\": \"https://site-admin-avatar-cdn.prod.public.atl-paas.net/avatars/240/cup.png\"\n    }\n  ]\n}\n```\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2019 [Yevhenii Baraniuk](http://github.com/jsarafajr)\n","readmeFilename":"README.md"}