{"_id":"@atlassian/atlassian-oauth2","_rev":"10-d3b6d8b164a0c2ef3162f04e4f6530a6","name":"@atlassian/atlassian-oauth2","dist-tags":{"latest":"0.9.0"},"versions":{"0.5.1":{"name":"@atlassian/atlassian-oauth2","version":"0.5.1","keywords":["atlassian","oauth"],"author":{"name":"Seb Ruiz","email":"sruiz@atlassian.com"},"license":"MIT","_id":"@atlassian/atlassian-oauth2@0.5.1","maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"}],"dist":{"shasum":"b982b6710a968b61a9aa5275ed58f6a40b1f8989","tarball":"https://registry.npmjs.org/@atlassian/atlassian-oauth2/-/atlassian-oauth2-0.5.1.tgz","fileCount":6,"integrity":"sha512-4+3DzaYqPqDAtaILjxmi+92ynzNw5TFHg8fxuinrR8PHFT4byR0ROL3qeVmcW+ZXCgjidosLvDO9ZT0mg1eRDg==","signatures":[{"sig":"MEQCIA9zCod7ZdrYeVASbMsPRb3wg8wOU33lW96lMFyz8qyVAiBf831M96/ZvbYSTdC3zIg5DpQlxKGz/ll8I3HffNt9NQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17262},"main":"./index","_from":"file:/tmp/package-1-68256e80-df7d7b286ef24dd0698685f3-1.tgz","scripts":{"test":"mocha test/*.js"},"_npmUser":{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"},"_resolved":"/tmp/package-1-68256e80-df7d7b286ef24dd0698685f3-1.tgz","_integrity":"sha512-4+3DzaYqPqDAtaILjxmi+92ynzNw5TFHg8fxuinrR8PHFT4byR0ROL3qeVmcW+ZXCgjidosLvDO9ZT0mg1eRDg==","deprecated":"This package is deprecated as part of ECORFC-621. Atlassian Connect frameworks and supporting libraries will reach end of support in December 2026. Migrate Connect apps to Forge: https://developer.atlassian.com/platform/adopting-forge-from-connect/","repository":{"url":"http://bitbucket.org/atlassian/atlassian-oauth2-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Atlassian Connect OAuth2 library","directories":{},"_nodeVersion":"20.19.0","dependencies":{"rsvp":"^4.8.4","request":"^2.88.0","atlassian-jwt":"^1.0.2"},"publishConfig":{"registry":"https://packages.atlassian.com/api/npm/npm-public/"},"_hasShrinkwrap":false,"devDependencies":{"qs":"^6.6.0","nock":"^10.0.6","mocha":"^6.0.2","extend":"^3.0.2","moment":"^2.24.0","should":"^13.2.3"},"_npmOperationalInternal":{"tmp":"tmp/atlassian-oauth2_0.5.1_1747283586753_0.5065130305462229","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@atlassian/atlassian-oauth2","version":"0.6.0","keywords":["atlassian","oauth"],"author":{"name":"Seb Ruiz","email":"sruiz@atlassian.com"},"license":"MIT","_id":"@atlassian/atlassian-oauth2@0.6.0","maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"}],"dist":{"shasum":"5623f3ac65b84cb3f60e1bd0e3b74469bcb8d131","tarball":"https://registry.npmjs.org/@atlassian/atlassian-oauth2/-/atlassian-oauth2-0.6.0.tgz","fileCount":6,"integrity":"sha512-XdOAyLj46w5OXlxGkBIOEXh/X527VyC6kpAeJW1giUsWPYIVXWgueDmxNJsRTDPq6AP9xrqCAxept6OG/VDnYQ==","signatures":[{"sig":"MEUCIQDb+XFdgD8ztpferWiwdLlR3PQ7ca1ZE+EBujrTximhuAIgTsgqQdcOmFmzzaY1YBj0MrxEr65VFpFoGfimFzUjpWQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17557},"main":"./index","_from":"file:/tmp/package-1-682ad209-c75026e53a262620e962ce59-1.tgz","scripts":{"test":"mocha test/*.js"},"_npmUser":{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"},"_resolved":"/tmp/package-1-682ad209-c75026e53a262620e962ce59-1.tgz","_integrity":"sha512-XdOAyLj46w5OXlxGkBIOEXh/X527VyC6kpAeJW1giUsWPYIVXWgueDmxNJsRTDPq6AP9xrqCAxept6OG/VDnYQ==","deprecated":"This package is deprecated as part of ECORFC-621. Atlassian Connect frameworks and supporting libraries will reach end of support in December 2026. Migrate Connect apps to Forge: https://developer.atlassian.com/platform/adopting-forge-from-connect/","repository":{"url":"http://bitbucket.org/atlassian/atlassian-oauth2-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Atlassian Connect OAuth2 library","directories":{},"_nodeVersion":"20.19.0","dependencies":{"rsvp":"^4.8.4","request":"^2.88.0","atlassian-jwt":"^1.0.2"},"publishConfig":{"registry":"https://packages.atlassian.com/api/npm/npm-public/"},"_hasShrinkwrap":false,"devDependencies":{"qs":"^6.6.0","nock":"^10.0.6","mocha":"^6.0.2","extend":"^3.0.2","moment":"^2.24.0","should":"^13.2.3"},"_npmOperationalInternal":{"tmp":"tmp/atlassian-oauth2_0.6.0_1747636747923_0.5817959171577722","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@atlassian/atlassian-oauth2","version":"0.7.0","keywords":["atlassian","oauth"],"author":{"name":"Seb Ruiz","email":"sruiz@atlassian.com"},"license":"MIT","_id":"@atlassian/atlassian-oauth2@0.7.0","maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"}],"dist":{"shasum":"973da81e784d2754eacb1b505414c2c0c8bd020e","tarball":"https://registry.npmjs.org/@atlassian/atlassian-oauth2/-/atlassian-oauth2-0.7.0.tgz","fileCount":6,"integrity":"sha512-LjasYDsZdmIg+jOmsNyNKOAMOt2p81htnV9+IJlSKr7EDgcpCEKusLz8H0OZ1UIxYxL2AYRkhU6tcFjwKGbflA==","signatures":[{"sig":"MEQCIC2BJmMD2do3gE2UL6HIPCR7pLJClgumwkaUi+H9OVwyAiBo7R/0EjEUTYTY9JYjAN2jn7TW9FnlpADQSUhlucA0sA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17606},"main":"./index","_from":"file:/tmp/package-1-685e5764-5c2295b0036f1460d190bbfb-1.tgz","scripts":{"test":"mocha test/*.js"},"_npmUser":{"name":"atlassianartifactteam","actor":{"name":"atlassianartifactteam","type":"user","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"},"email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"},"_resolved":"/tmp/package-1-685e5764-5c2295b0036f1460d190bbfb-1.tgz","_integrity":"sha512-LjasYDsZdmIg+jOmsNyNKOAMOt2p81htnV9+IJlSKr7EDgcpCEKusLz8H0OZ1UIxYxL2AYRkhU6tcFjwKGbflA==","deprecated":"This package is deprecated as part of ECORFC-621. Atlassian Connect frameworks and supporting libraries will reach end of support in December 2026. Migrate Connect apps to Forge: https://developer.atlassian.com/platform/adopting-forge-from-connect/","repository":{"url":"http://bitbucket.org/atlassian/atlassian-oauth2-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Atlassian Connect OAuth2 library","directories":{},"_nodeVersion":"20.19.1","dependencies":{"rsvp":"^4.8.4","request":"^2.88.0","@atlassian/atlassian-jwt":"^1.0.3"},"publishConfig":{"registry":"https://packages.atlassian.com/api/npm/npm-public/"},"_hasShrinkwrap":false,"devDependencies":{"qs":"^6.6.0","nock":"^10.0.6","mocha":"^6.0.2","extend":"^3.0.2","moment":"^2.24.0","should":"^13.2.3"},"_npmOperationalInternal":{"tmp":"tmp/atlassian-oauth2_0.7.0_1751013225099_0.4476249948712916","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@atlassian/atlassian-oauth2","version":"0.8.0","keywords":["atlassian","oauth"],"author":{"name":"Seb Ruiz","email":"sruiz@atlassian.com"},"license":"MIT","_id":"@atlassian/atlassian-oauth2@0.8.0","maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"}],"dist":{"shasum":"5f08ea41f206f130d37cab7d38c51e9f460ea274","tarball":"https://registry.npmjs.org/@atlassian/atlassian-oauth2/-/atlassian-oauth2-0.8.0.tgz","fileCount":6,"integrity":"sha512-sQestsdYYss1XQXtZnXE31jJff39hkrCxW4u971wCKkDCOHxZQ1INQ2V69bxOGebgdNscRXY+Oe7MCkL+b9VGg==","signatures":[{"sig":"MEUCIFXfIhTVaSuIHr2vt9nld3gVVjcYhogyaOrVfkIZFvvjAiEAizxoZ2p76L43ZuHiBwEgNe5SZMQJNk0CfwGZSTTrixc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17723},"main":"./index","_from":"file:/tmp/package-1-68673846-5e115a4a57384714ff610a3b-1.tgz","scripts":{"test":"mocha test/*.js"},"_npmUser":{"name":"atlassianartifactteam","actor":{"name":"atlassianartifactteam","type":"user","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"},"email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"},"_resolved":"/tmp/package-1-68673846-5e115a4a57384714ff610a3b-1.tgz","_integrity":"sha512-sQestsdYYss1XQXtZnXE31jJff39hkrCxW4u971wCKkDCOHxZQ1INQ2V69bxOGebgdNscRXY+Oe7MCkL+b9VGg==","repository":{"url":"http://bitbucket.org/atlassian/atlassian-oauth2-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Atlassian Connect OAuth2 library","directories":{},"_nodeVersion":"20.19.2","dependencies":{"rsvp":"^4.8.4","request":"^2.88.0","@atlassian/atlassian-jwt":"^2.2.0"},"publishConfig":{"registry":"https://packages.atlassian.com/api/npm/npm-public/"},"_hasShrinkwrap":false,"devDependencies":{"qs":"^6.6.0","nock":"^10.0.6","mocha":"^6.0.2","extend":"^3.0.2","moment":"^2.24.0","should":"^13.2.3"},"_npmOperationalInternal":{"tmp":"tmp/atlassian-oauth2_0.8.0_1751595083464_0.8068604241033495","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated as part of ECORFC-621. Atlassian Connect frameworks and supporting libraries will reach end of support in December 2026. Migrate Connect apps to Forge: https://developer.atlassian.com/platform/adopting-forge-from-connect/"},"0.9.0":{"name":"@atlassian/atlassian-oauth2","version":"0.9.0","keywords":["atlassian","oauth"],"author":{"name":"Seb Ruiz","email":"sruiz@atlassian.com"},"license":"MIT","_id":"@atlassian/atlassian-oauth2@0.9.0","maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"}],"dist":{"shasum":"b862545cdd8b82f86c0652af59a1e86c75fd6c64","tarball":"https://registry.npmjs.org/@atlassian/atlassian-oauth2/-/atlassian-oauth2-0.9.0.tgz","fileCount":8,"integrity":"sha512-19nRiRngncsbqdP4KDeHlfJG5/Sse71ZyfCaVzgRS+fHuVvlc06TzurYHZW4AfNb7UGoecYC5ZlKfd5z+Zw+0w==","signatures":[{"sig":"MEYCIQDDu0g6yfjGVvK1RetYvcgIkUGsXNmyej14ImvJqgb9HAIhAPVKj1oB6ZEzQW6Zr3IV2LJB/vc8XmKsHia9+wqGEG7T","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20925},"main":"./index","_from":"file:/tmp/package-1-68affea1-d862cad0fca6d68d9a7fb965-1.tgz","scripts":{"test":"mocha test/*.js"},"_npmUser":{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"},"_resolved":"/tmp/package-1-68affea1-d862cad0fca6d68d9a7fb965-1.tgz","overrides":{"form-data":"4.0.4"},"_integrity":"sha512-19nRiRngncsbqdP4KDeHlfJG5/Sse71ZyfCaVzgRS+fHuVvlc06TzurYHZW4AfNb7UGoecYC5ZlKfd5z+Zw+0w==","deprecated":"This package is deprecated as part of ECORFC-621. Atlassian Connect frameworks and supporting libraries will reach end of support in December 2026. Migrate Connect apps to Forge: https://developer.atlassian.com/platform/adopting-forge-from-connect/","repository":{"url":"http://bitbucket.org/atlassian/atlassian-oauth2-js.git","type":"git"},"_npmVersion":"10.8.2","description":"Atlassian Connect OAuth2 library","directories":{},"_nodeVersion":"20.19.3","dependencies":{"rsvp":"^4.8.4","request":"^2.88.2","@atlassian/atlassian-jwt":"^2.2.0"},"publishConfig":{"registry":"https://packages.atlassian.com/api/npm/npm-public/"},"_hasShrinkwrap":false,"devDependencies":{"qs":"^6.6.0","nock":"^10.0.6","mocha":"^6.0.2","extend":"^3.0.2","moment":"^2.24.0","should":"^13.2.3"},"_npmOperationalInternal":{"tmp":"tmp/atlassian-oauth2_0.9.0_1756364452291_0.36075496557054954","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-05-15T04:33:06.649Z","modified":"2026-06-24T04:10:00.999Z","0.5.1":"2025-05-15T04:33:06.918Z","0.6.0":"2025-05-19T06:39:08.103Z","0.7.0":"2025-06-27T08:33:45.280Z","0.8.0":"2025-07-04T02:11:23.640Z","0.9.0":"2025-08-28T07:00:52.466Z"},"author":{"name":"Seb Ruiz","email":"sruiz@atlassian.com"},"license":"MIT","keywords":["atlassian","oauth"],"repository":{"url":"http://bitbucket.org/atlassian/atlassian-oauth2-js.git","type":"git"},"description":"Atlassian Connect OAuth2 library","maintainers":[{"name":"atlassianartifactteam","email":"eng-development-tooling-secrets-and-artifacts@atlassian.com"}],"readme":"# atlassian-oauth2\n\nA node module which facilitates the exchange of an add-ons JWT token for an OAuth 2 bearer token,\nfollowing the [RFC-7521](https://tools.ietf.org/html/rfc7521) and [RFC-7523](https://tools.ietf.org/html/rfc7523)\nspecifications.\n\n## Install\n\n```bash\nnpm i @atlassian/atlassian-oauth2\n```\n\n## Usage\n\n```javascript\nvar oauth2 = require('@atlassian/atlassian-oauth2');\n\nvar options = {\n    hostBaseUrl: 'https://instance.atlassian.net',\n    oauthClientId: '{oauth client id your add-on was given at installation}',\n    sharedSecret: '{the shared secret your add-on was given at installation}',\n    userKey: '{the userkey of the user to retreive the token for}',\n    scopes: ['{an array of scopes requested}']\n};\n\noauth2.getAccessToken(options).then(function (token) {\n    console.log(token);\n    // token.access_token = '{your access token}'\n    // token.expires_in = '{expiry time}'\n    // token.token_type = 'Bearer'\n});\n```\n","readmeFilename":"README.md"}