{"_id":"@3fv/atlassian-oauth-connect","_rev":"6-1bcc0900fb58d85aad6b18d8ced49b54","name":"@3fv/atlassian-oauth-connect","dist-tags":{"latest":"1.0.10"},"versions":{"1.0.3":{"name":"@3fv/atlassian-oauth-connect","description":"Atlassian Connect OAuth2 library","version":"1.0.3","author":{"name":"Jonathan Glanz","email":"jonathan.glanz@gmail.com"},"repository":{"type":"git","url":"https://github.com/3fv/atlassian-oauth-connect.git"},"dependencies":{"@3fv/guard":"^1.4.31","atlassian-jwt":"^2.0.2","isomorphic-fetch":"^3.0.0","lodash":"^4","lodash-es":"^4","ts-pattern":"^3.3.3"},"devDependencies":{"@3fv/prelude-ts":"^0.8.28","@3fv/project-config":"^1.0.6","@types/express":"^4.17.13","@types/isomorphic-fetch":"^0.0.35","@types/lodash":"^4.14.178","@types/node":"^16","concurrently":"^6.4.0","cypress":"^9.1.1","express":"^4.17.1","jest":"^27.4.4","moment":"^2.24.0","nodemon":"^2.0.15","prettier":"^2.5.1","source-map-support":"^0.5.21","tracer":"^1.1.5","ts-jest":"^27.1.1","typescript":"^4.5.3"},"resolutions":{"typescript":"^4.5.3","ts-jest":"^27.1.1","jest":"^27.4.4"},"publishConfig":{"access":"public","registry":"http://registry.npmjs.org"},"scripts":{"build":"./scripts/build.fish","build:watch":"yarn run build -w","build:clean":"yarn run clean && yarn run build","clean":"test -d lib && rm -Rf lib; echo cleaned","example:server:run":"node -r source-map-support/register lib/cjs/example/server.js","example:server:start":"yarn run build && yarn run example:server:run","example:server:dev":"yarn build && concurrently 'yarn build:watch' 'nodemon -r source-map-support/register --watch lib/cjs lib/cjs/example/server.js'","//test":"jest","//test:watch":"jest --watch","preversion":"yarn build","postversion":"./scripts/release.sh latest","release":"yarn version --patch --non-interactive"},"license":"MIT","keywords":["atlassian","connect","atlassian connect","forge","oauth","oauth2","3lo"],"main":"./lib/cjs/index.js","module":"./lib/mjs/index.js","types":"./lib/mjs/index.d.ts","exports":{".":{"import":"./lib/mjs/index.js","require":"./lib/cjs/index.js"}},"_id":"@3fv/atlassian-oauth-connect@1.0.3","dist":{"shasum":"acfb0808ce87a000c5eedf27c49a023bb01f93c6","integrity":"sha512-XMMsws4zS4KRxjn44yIdEGBiSuwmdkqTWVqN6w4SGuBpjTzoFB+Pr7NdELZlj996CZEsahpcnZZ1HXeLDXb4JA==","tarball":"https://registry.npmjs.org/@3fv/atlassian-oauth-connect/-/atlassian-oauth-connect-1.0.3.tgz","fileCount":76,"unpackedSize":125042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtpiFCRA9TVsSAnZWagAAJx8P/1JeXju8OGs6NFyY+44P\nbfiSqDTC7fD1Jdy2n8cLg0wWg6yZdHV+3CkvPwQr1OxLRsigBsBCl5pStya6\nc90+sVz0fFFSRx0FP5JiHPTw5XxU40oqyiUWHHjsFByBlzR4ulbYJB304ZCx\nr0BYASmckhluUDQLlsYidQDN69OHHPtN0t46sN0zUTGT6BqKlYkIm/He9qXD\nUOXmcPNjQEclAHcA5/EcvZLX8LcwPZtIBlPp0IGXxMdDK1plMjik7Qn20YRH\np5oOBvoM4Epl25JpuY4+37RUKUip8b/QIZVFlqBH6T7m0oL0czfZc1CwE2ZY\nSnu2kNRQBqecCAXdoqbxBgsMFl7q97a7d8el2ES2vtYfeGWDEH6JT0SPu8Z+\nVGA9NSy1rLGY0VnbVnoq8F+k/L41opoJ7epOxm0rxtaN4/Tfgkjr37xhSFyO\nsIS8kzUQqiQS/Z3mugiUu5NQV+iIKnmlCcgqMU4yR+6nzXOd1bWy07iMOtp7\naiCIdbL7dIYhKTq5lQvF6ZTexVrsyKK3qZoDILjdXDA2vkKIE5iVNP6cmIa7\nPwrBAXDztZUdiuwIHWGQV2ay3RxnVrf6tcRqQ9YY1e8zybqiIcJ4VmrvznKP\n+sDD2jE8ERPIPVj627HSRp3uGEcdukSAb8MowRfp3J8UyqDdt9Fi2VIDfidY\nfGrF\r\n=JqbY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5MoZKql6paWVmhnXEWryIudaG9pWVu9+9DxG7l8sKAAiAhv6WFNB2IHxICpA/9RxmxGa0EiPqgUjNBgspfe41V0Q=="}]},"_npmUser":{"name":"jglanz","email":"jonathan.glanz@gmail.com"},"directories":{},"maintainers":[{"name":"jglanz","email":"jonathan.glanz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlassian-oauth-connect_1.0.3_1639356549021_0.04605203168048644"},"_hasShrinkwrap":false},"1.0.4":{"name":"@3fv/atlassian-oauth-connect","description":"Atlassian Connect OAuth2 library","version":"1.0.4","author":{"name":"Jonathan Glanz","email":"jonathan.glanz@gmail.com"},"repository":{"type":"git","url":"https://github.com/3fv/atlassian-oauth-connect.git"},"dependencies":{"@3fv/guard":"^1.4.31","atlassian-jwt":"^2.0.2","isomorphic-fetch":"^3.0.0","lodash":"^4","lodash-es":"^4","ts-pattern":"^3.3.3"},"devDependencies":{"@3fv/prelude-ts":"^0.8.28","@3fv/project-config":"^1.0.6","@types/express":"^4.17.13","@types/isomorphic-fetch":"^0.0.35","@types/lodash":"^4.14.178","@types/node":"^16","concurrently":"^6.4.0","cypress":"^9.1.1","express":"^4.17.1","jest":"^27.4.4","moment":"^2.24.0","nodemon":"^2.0.15","prettier":"^2.5.1","source-map-support":"^0.5.21","tracer":"^1.1.5","ts-jest":"^27.1.1","typescript":"^4.5.3"},"resolutions":{"typescript":"^4.5.3","ts-jest":"^27.1.1","jest":"^27.4.4"},"publishConfig":{"access":"public","registry":"http://registry.npmjs.org"},"license":"MIT","keywords":["atlassian","connect","atlassian connect","forge","oauth","oauth2","3lo"],"main":"./lib/cjs/index.js","module":"./lib/mjs/index.js","types":"./lib/mjs/index.d.ts","exports":{".":{"import":"./lib/mjs/index.js","require":"./lib/cjs/index.js"}},"_id":"@3fv/atlassian-oauth-connect@1.0.4","dist":{"shasum":"130c9a498cb45f609f88ea97fd4797046d7bee61","integrity":"sha512-6LV586TrqZfzQ2RZSvYgCDNXdawqicejdnYX1zh0u6GLdjizroXXvNfveeaxMps0CBx0rxMiHdRt2d3gVLYBmg==","tarball":"https://registry.npmjs.org/@3fv/atlassian-oauth-connect/-/atlassian-oauth-connect-1.0.4.tgz","fileCount":3,"unpackedSize":7172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtpixCRA9TVsSAnZWagAAsYEP/0n4OhUteOrqNon2E/EJ\nOkYBb5YXDfhnPYMFp6yMc8unOvUBJMowktokLGJiMGUSqgj6EeWJNuNNS8OL\n98QwmDi8lrhqCUj7G2b9/pNxUVnFmEtC9WN7m1R6TGUyS8ju91Z2sDlFzpR9\n96ouzunNYSPJgveUcHp8GCOeP3PUECEb7uoxwaSzVE3QpFtywGphYV7BJPuP\ngD1bpf9xjcyrEBVU93FspRbi6JjjHuqwCJdT3oknWRTDz/V6xUKll+TfrWBh\n0mKRM5LMNlqfntdiyWc2wANnPZP7rVztOMp14NVimpl3utxRlKWaCFrCRgYX\nlMrXUjugnxh3E/DSZzr+WwgBf2rw2E6ptJuKWxFglaPW3YZMUq2c1FDPNou/\nqsho7K9hREqcuy7pXEQypa4KcOxm08+1HGaEK85+w0+EIhgjBYQ3Ozq9S1NW\nAPuE7FFNlV+AyU6V7AqjjwxJTLJMBf3NSKqPaWdMnC3Ymm+dn4yBwviWCMu5\naqoeO98F1n8qcJnupQyVemztQW8Fp9qXoeTGtS9bI7xipLecpTyhQqJ7oit4\n4KJ5674Tj7K0/ycQvJDDs5DuS6zsIR3rqvynnmCJ5FkoXXrl3aziO2ByaNJW\nt1QQVnOHnhK7CsancAfKRaaogl5Kap10fCFVjWla0tASRaZNg5DQWdOY3V5j\nkFId\r\n=S92f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJAhlxAoPiKJQM52PZ+7qtOQTcpI4Mov+bWl9aGonRcwIhAJXE4sVgOAa0WkkBT1fc7aQG9M8Kl7YF8+Ncgs3iCOoK"}]},"_npmUser":{"name":"jglanz","email":"jonathan.glanz@gmail.com"},"directories":{},"maintainers":[{"name":"jglanz","email":"jonathan.glanz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlassian-oauth-connect_1.0.4_1639356593353_0.7675622517156029"},"_hasShrinkwrap":false},"1.0.5":{"name":"@3fv/atlassian-oauth-connect","description":"Atlassian Connect OAuth2 library","version":"1.0.5","author":{"name":"Jonathan Glanz","email":"jonathan.glanz@gmail.com"},"repository":{"type":"git","url":"https://github.com/3fv/atlassian-oauth-connect.git"},"dependencies":{"@3fv/guard":"^1.4.31","atlassian-jwt":"^2.0.2","isomorphic-fetch":"^3.0.0","lodash":"^4","lodash-es":"^4","ts-pattern":"^3.3.3"},"devDependencies":{"@3fv/prelude-ts":"^0.8.28","@3fv/project-config":"^1.0.6","@types/express":"^4.17.13","@types/isomorphic-fetch":"^0.0.35","@types/lodash":"^4.14.178","@types/node":"^16","concurrently":"^6.4.0","cypress":"^9.1.1","express":"^4.17.1","jest":"^27.4.4","moment":"^2.24.0","nodemon":"^2.0.15","prettier":"^2.5.1","source-map-support":"^0.5.21","tracer":"^1.1.5","ts-jest":"^27.1.1","typescript":"^4.5.3"},"resolutions":{"typescript":"^4.5.3","ts-jest":"^27.1.1","jest":"^27.4.4"},"publishConfig":{"access":"public","registry":"http://registry.npmjs.org"},"scripts":{"build":"./scripts/build.fish","build:watch":"yarn run build -w","build:clean":"yarn run clean && yarn run build","clean":"test -d lib && rm -Rf lib; echo cleaned","example:server:run":"node -r source-map-support/register lib/cjs/example/server.js","example:server:start":"yarn run build && yarn run example:server:run","example:server:dev":"yarn build && concurrently 'yarn build:watch' 'nodemon -r source-map-support/register --watch lib/cjs lib/cjs/example/server.js'","//test":"jest","//test:watch":"jest --watch","preversion":"yarn build","postversion":"./scripts/release.sh latest","release":"yarn version --patch --non-interactive"},"license":"MIT","keywords":["atlassian","connect","atlassian connect","forge","oauth","oauth2","3lo"],"main":"./lib/cjs/index.js","module":"./lib/mjs/index.js","types":"./lib/mjs/index.d.ts","exports":{".":{"import":"./lib/mjs/index.js","require":"./lib/cjs/index.js"}},"_id":"@3fv/atlassian-oauth-connect@1.0.5","dist":{"shasum":"63a288b9986816584c8889a51893bd15bb04fda8","integrity":"sha512-hyC+7agjsygTN86AMw/lAAEJRLeKOOqT9cQ6DfAhGAZG7y2+Mv7FpMH/i3YOqjyg23236Zkud1g6aJIrDhEuwg==","tarball":"https://registry.npmjs.org/@3fv/atlassian-oauth-connect/-/atlassian-oauth-connect-1.0.5.tgz","fileCount":76,"unpackedSize":125035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtpkkCRA9TVsSAnZWagAAJXcP/RXXno7PwgIGDTriohrE\nJe21JlIwbbwvEjeSOqnhKnn4XBdAmjnG3/GS1yrPo43imgjI22neehtpId5H\nZOamqHbLj7RvO2MzXkZdWUji/jy9D/ZOmSc3ODjwdb+5VsfGOonbct+k58D+\n3vN1Mm2m7x0qdYasuqWNNywxaT0J7yMC/lGOzXjmES/TSAVvqVXY44r5WwUc\n5rvTq+1PumxFi12RYt4fJdHLHFYmZNaILUY2nitRfvOHPESOQwKaJmk21MH/\n/HLnfc5jymElwyPVc8HU7+ojB1LPaRtCaJlWXXShjwoI8FSArigJZWSnbErV\nwu+1K1DsUIVcTnteV+RVLZANB3WmD15dsaKX0ULFXri7I6/H3ZFoHjAtNJeu\n9zPfLGZ/FgFZc7irn8QClV/1YG5npozwziwWO/wc0g1EX/ioy1WLMvImNsQb\nzvRtx07OolG0ij/PD22lXWRFuzzTWnlc2uyBDR877Wgdx3oos/OItTcGq8cR\n4BjftQcTQdRuv0M7eNm9qvRQlGTiy0bgpQZnOu3jCO4JXnKpgqs19oQx005T\nw/bYe3UuLdt+M3OUaPtQVpaIlhPvNGnIjQ9XbYAQb5BjbrtuB0JWiTbsRPWE\nu6xJYA9+6ulbpS6lr8Xnw7qut0QIZgT7bHSUCo23tgZM8BtE9YY2hSf8T1dX\nqZkK\r\n=A4jb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwpGVdCZR75EDErH0mNvy37mwKehRLHU5JbkcVTnihwAiEA7H0aaWUAA37yUiP/TPG2pGE3ZGjdRP4QVHam5tJB2qY="}]},"_npmUser":{"name":"jglanz","email":"jonathan.glanz@gmail.com"},"directories":{},"maintainers":[{"name":"jglanz","email":"jonathan.glanz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlassian-oauth-connect_1.0.5_1639356708494_0.6947862464392129"},"_hasShrinkwrap":false},"1.0.6":{"name":"@3fv/atlassian-oauth-connect","description":"Atlassian Connect OAuth2 library","version":"1.0.6","author":{"name":"Jonathan Glanz","email":"jonathan.glanz@gmail.com"},"repository":{"type":"git","url":"https://github.com/3fv/atlassian-oauth-connect.git"},"dependencies":{"@3fv/guard":"^1.4.31","atlassian-jwt":"^2.0.2","isomorphic-fetch":"^3.0.0","lodash":"^4","lodash-es":"^4","ts-pattern":"^3.3.3"},"devDependencies":{"@3fv/prelude-ts":"^0.8.28","@3fv/project-config":"^1.0.6","@types/express":"^4.17.13","@types/isomorphic-fetch":"^0.0.35","@types/lodash":"^4.14.178","@types/node":"^16","concurrently":"^6.4.0","cypress":"^9.1.1","express":"^4.17.1","jest":"^27.4.4","moment":"^2.24.0","nodemon":"^2.0.15","prettier":"^2.5.1","source-map-support":"^0.5.21","tracer":"^1.1.5","ts-jest":"^27.1.1","typescript":"^4.5.3"},"resolutions":{"typescript":"^4.5.3","ts-jest":"^27.1.1","jest":"^27.4.4"},"publishConfig":{"access":"public","registry":"http://registry.npmjs.org"},"scripts":{"build":"./scripts/build.fish","build:watch":"yarn run build -w","build:clean":"yarn run clean && yarn run build","clean":"test -d lib && rm -Rf lib; echo cleaned","example:server:run":"node -r source-map-support/register lib/cjs/example/server.js","example:server:start":"yarn run build && yarn run example:server:run","example:server:dev":"yarn build && concurrently 'yarn build:watch' 'nodemon -r source-map-support/register --watch lib/cjs lib/cjs/example/server.js'","//test":"jest","//test:watch":"jest --watch","preversion":"yarn build","postversion":"./scripts/release.sh latest","release":"yarn version --patch --non-interactive"},"license":"MIT","keywords":["atlassian","connect","atlassian connect","forge","oauth","oauth2","3lo"],"main":"./lib/cjs/index.js","module":"./lib/mjs/index.js","types":"./lib/mjs/index.d.ts","exports":{".":{"import":"./lib/mjs/index.js","require":"./lib/cjs/index.js"}},"_id":"@3fv/atlassian-oauth-connect@1.0.6","dist":{"shasum":"894ca180b9a1f7dd4eeed9ba7a30f868e5b22a34","integrity":"sha512-HeuYxzETjoH7+g0uheOgbU+QmgRa6sbuGZA30jSiHqaKDG/VPqWY4/aJdziP0Z6nz5DEXZNTTT3gh+5CDLhoyw==","tarball":"https://registry.npmjs.org/@3fv/atlassian-oauth-connect/-/atlassian-oauth-connect-1.0.6.tgz","fileCount":76,"unpackedSize":125035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtpldCRA9TVsSAnZWagAAUEIQAJB583oTXnt4tdQL5xXZ\nrgg3nOGEpZxa0TnfOmofPYSDCq7Vuk6F63fyxOwDnuDmMfTKmcBUuTkjsjQG\nszwQ0Y8NQlI0kpksJms6CnGVU8obHtbwjTekBabLztsllEMIolDeN3085REJ\nIp23QqmoQY4Tp5H231vVEGsigPtQJU3ggwsT8Yuph6vFIZKM2toMhcyU7Qu0\ndI0EhHeZgQz90g2EB1UEt1F4E7FuXA+YNX+xZXK1yMzZ6jsjb6XkcHfntJU3\nJSGs2/g7RpkCx4OZn63KIYizEURIQRem5ZJeFsRD1eUfzJLYel0QganTiTow\ndXAZWsPnK5vlhWKVIEFDtGJNu+eiflxpCDDzyaiKPHtNDGVWFlXbwC2UAyMr\nOEK8oVePOhqhNor4iOwZs14gpv5y/eBqRSnCe+pJg9WJwRn03AYc8RRzlYka\nEUPXMLP5+UtQ0cVtuPZl75ALK6v3EO4JlGb3asHxPetILBPD/iDQjBGrNOrF\nRe1gJER1uQJSTDEtj+IU5uFE/kj+tG+sTdJnhdd/1yU3RiQl3GglObAgphwG\n1Yu0JX+7wEJtrX7Qwfw8tVVjKzDcOvajWO2AMlkj4ztuAT1Rg74B8TiW+sda\n01KbOqS48838wpbHdFTnRtp571tQNzXPFJ40Il56VsS91tnPyVcCS4LINsCo\nrWKe\r\n=UqHp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChxMHFjCB+2ns1ZbYSOW6Jg6KGJE5GN1xl+9RpD/CZOAIhAOdN8TkofHOVWCxf784EdRfgSd+aEf6zlqIL+5OCNsTR"}]},"_npmUser":{"name":"jglanz","email":"jonathan.glanz@gmail.com"},"directories":{},"maintainers":[{"name":"jglanz","email":"jonathan.glanz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlassian-oauth-connect_1.0.6_1639356765723_0.07571921582990893"},"_hasShrinkwrap":false},"1.0.9":{"name":"@3fv/atlassian-oauth-connect","description":"Atlassian Connect OAuth2 library","version":"1.0.9","author":{"name":"Jonathan Glanz","email":"jonathan.glanz@gmail.com"},"repository":{"type":"git","url":"https://github.com/3fv/atlassian-oauth-connect.git"},"dependencies":{"@3fv/guard":"^1.4.31","atlassian-jwt":"^2.0.2","isomorphic-fetch":"^3.0.0","lodash":"^4","lodash-es":"^4","ts-pattern":"^3.3.3"},"devDependencies":{"@3fv/prelude-ts":"^0.8.28","@3fv/project-config":"^1.0.6","@types/express":"^4.17.13","@types/isomorphic-fetch":"^0.0.35","@types/lodash":"^4.14.178","@types/node":"^16","concurrently":"^6.4.0","cypress":"^9.1.1","express":"^4.17.1","jest":"^27.4.4","moment":"^2.24.0","nodemon":"^2.0.15","prettier":"^2.5.1","source-map-support":"^0.5.21","tracer":"^1.1.5","ts-jest":"^27.1.1","typescript":"^4.5.3"},"resolutions":{"typescript":"^4.5.3","ts-jest":"^27.1.1","jest":"^27.4.4"},"publishConfig":{"access":"public","registry":"http://registry.npmjs.org"},"scripts":{"build":"./scripts/build.fish","build:watch":"yarn run build -w","build:clean":"yarn run clean && yarn run build","clean":"test -d lib && rm -Rf lib; echo cleaned","example:server:run":"node -r source-map-support/register lib/cjs/example/server.js","example:server:start":"yarn run build && yarn run example:server:run","example:server:dev":"yarn build && concurrently 'yarn build:watch' 'nodemon -r source-map-support/register --watch lib/cjs lib/cjs/example/server.js'","//test":"jest","//test:watch":"jest --watch","preversion":"yarn build","postversion":"./scripts/release.sh latest","release":"yarn version --patch --non-interactive"},"license":"MIT","keywords":["atlassian","connect","atlassian connect","forge","oauth","oauth2","3lo"],"main":"./lib/cjs/index.js","module":"./lib/mjs/index.js","types":"./lib/mjs/index.d.ts","exports":{".":{"import":"./lib/mjs/index.js","require":"./lib/cjs/index.js"}},"_id":"@3fv/atlassian-oauth-connect@1.0.9","dist":{"shasum":"1895cb29cef03283d569134187a63c9b529bc0be","integrity":"sha512-8FzrXm+xAUP2Z55xtZ7kV2QkQ2mcE7kak5mxB6ERhQKfLlrIYCHqM68e3Cal1ono1Fxg/KQknE50/lB3c4w+LQ==","tarball":"https://registry.npmjs.org/@3fv/atlassian-oauth-connect/-/atlassian-oauth-connect-1.0.9.tgz","fileCount":76,"unpackedSize":125035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtpsjCRA9TVsSAnZWagAAFfMP/1sVGhz59qJ8amgKp8yl\nqrcm99d6OVsZxqcMpOERRi5qB663SaNKCxRAJooZZyMoL0DLnicT10fw9eIJ\ncTVfM86Ws9EyDdSiplyEplHMrHYw0KXomgbsaTVMWCvyIBS+B1u5X5lbWdvy\nZmIqmnmjpje4PvKznDiLNtj1QyEVpLOc36qFEcVotjLYqblG30qoFzzndI++\nkKsMjIyqJ8YOY43yQ3z6zWycmMxnrc7xbQLvmUuY/Q1CltSS6kuElj770YE0\n36qU3v9p5nKHZdKXqarkHRxUJV6IduX7N2gokZsVYayfQRatlhMQQsFHsiOQ\nGfisxLabrNQtpAFLeaqi3GoOxVbhr/I0NUxGT4+nWN9un+5QRlQMGgukmjOm\n0TPe7HNTp7U/uLDW3D8MxVeL3x8cbbYWXJV1RE3GePPuwy6lKLVYCGw5eNT9\nDRR7B7/LJUaKoJsDQMEFHvlRpdPLpEPCDdcjvmTVC7TCmquURqmqwlrqtETd\nU6mMtXEhKdYPV2mcIl0MQgbzMFxZeKRwJudS1LzuWRvwVmmLFxDTlOAkseSu\nLTWt74s4WDrk+UvfBkEzrlHDBjDa81nn0dVqlNemHIgyL0W1Pfs7s8tGGzHf\nzzM+EBB2aOuu+GhN60Ot3x4tZ0vlm9gFRNDIKwAjvU1zTkovfkxoyAnMYOeK\nLcn4\r\n=yIuD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCArE5XRlnM4SQcYO2smRfjIG30U9LVHs4f7n7fNbhuBwIhAJg9LlFr6J+m+aDMJrM+UpDljXBE1VZGDXc7d4tSf3lH"}]},"_npmUser":{"name":"jglanz","email":"jonathan.glanz@gmail.com"},"directories":{},"maintainers":[{"name":"jglanz","email":"jonathan.glanz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlassian-oauth-connect_1.0.9_1639357219817_0.3419066788165628"},"_hasShrinkwrap":false},"1.0.10":{"name":"@3fv/atlassian-oauth-connect","description":"Atlassian Connect OAuth2 library","version":"1.0.10","author":{"name":"Jonathan Glanz","email":"jonathan.glanz@gmail.com"},"repository":{"type":"git","url":"https://github.com/3fv/atlassian-oauth-connect.git"},"dependencies":{"@3fv/guard":"^1","atlassian-jwt":"^2.0.2","isomorphic-fetch":"^3.0.0","lodash":"^4","lodash-es":"^4","ts-pattern":"^3.3.3"},"devDependencies":{"@3fv/prelude-ts":"^0.8.28","@3fv/project-config":"^1.0.6","@types/express":"^4.17.13","@types/isomorphic-fetch":"^0.0.35","@types/lodash":"^4.14.178","@types/node":"^16","concurrently":"^6.4.0","cypress":"^9.1.1","express":"^4.17.1","jest":"^27.4.4","moment":"^2.24.0","nodemon":"^2.0.15","prettier":"^2.5.1","source-map-support":"^0.5.21","tracer":"^1.1.5","ts-jest":"^27.1.1","typescript":"^4.5.3"},"resolutions":{"typescript":"^4.5.3","ts-jest":"^27.1.1","jest":"^27.4.4"},"publishConfig":{"access":"public","registry":"http://registry.npmjs.org"},"scripts":{"build":"./scripts/build.fish","build:watch":"yarn run build -w","build:clean":"yarn run clean && yarn run build","clean":"test -d lib && rm -Rf lib; echo cleaned","example:server:run":"node -r source-map-support/register lib/cjs/example/server.js","example:server:start":"yarn run build && yarn run example:server:run","example:server:dev":"yarn build && concurrently 'yarn build:watch' 'nodemon -r source-map-support/register --watch lib/cjs lib/cjs/example/server.js'","//test":"jest","//test:watch":"jest --watch","preversion":"yarn build","postversion":"./scripts/release.sh latest","release":"yarn version --patch --non-interactive"},"license":"MIT","keywords":["atlassian","connect","atlassian connect","forge","oauth","oauth2","3lo"],"main":"./lib/cjs/index.js","module":"./lib/mjs/index.js","types":"./lib/mjs/index.d.ts","exports":{".":{"import":"./lib/mjs/index.js","require":"./lib/cjs/index.js"}},"_id":"@3fv/atlassian-oauth-connect@1.0.10","dist":{"shasum":"f5c4a61682075198ba569e6d5ef060f5db3b0400","integrity":"sha512-50yHf8GnuF4QRW321wvutvBHQhWwdJBJ1G/2DtOo91oX3CHYXP+llB0b95uwnlPxclIF+2oQ4fPQK7cIB7AqPg==","tarball":"https://registry.npmjs.org/@3fv/atlassian-oauth-connect/-/atlassian-oauth-connect-1.0.10.tgz","fileCount":18,"unpackedSize":25436,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7vBbCRA9TVsSAnZWagAAGfUP/R3uSfhzhC3hRnXQGRta\nYIIHPjI/pxcV0gyHqJRr7rDgBGzauKdNkuvNegaCwAD6pabsp9elrIv2cJu/\nz2KFMvW+tsbrxivvlZss5An3rE3O1Yv7wlH4EoxUpzJRFjIEF7Q6bj/hTRUd\nKMqBBr46zFlTDKAEsVMRL+Gr12ar2SYkfRSMqA+NdBb6uCKt8NleAb1GrVl8\npkicrWfaxBuVrclbta/pL3/Jt+/f6msBO5agApOJEKzHclKn6GwI7FNNGyWV\n3L/c/YZko/Ie7tP7e4M9hkqajzftid/d0IBUZCX+NWBFXnfP3itBpyq+dBEc\nxeoXZWyFv1nlVVIlfRGJuBw04nxXBCGBSIP9/QvTb9TM06EeAlnGi6+RPqao\nnKZa1g92/C3fEXvSvjqEwXJKmtMC8bAj+6ua9vVvHHJxpwSxzvNOYNKQlAl5\nPEhSolZT1ZML9tgRITxQvIbrY4vdZGnKz828oVBUzYEJPbZ/zVfEQ2/LT9uZ\nIf4NQjeTmBvjOe8DHGysn0+DRHDQoQ0OQEBgRe9V5eCq50+uU4MMAk8KaDSS\nNHffuC6mJDouz1zdTPGqzjJNEBzS6TUikeNGkKaGvRl7hIO+hagocykr5GmH\nWWJKfabVw/cyP5PszGdqghedSvexlxC36R2UPf54uR2zSJYeyVjhxFl+DF82\nWqIG\r\n=6YBT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5iVsgPGIrYorzccb/AnhP5HGaR4XLwfdkvysSoDYHkAiEAixCDkYvt2cg5le1gsek+luhoo8PyqlwbS59v6bXqcvs="}]},"_npmUser":{"name":"jglanz","email":"jonathan.glanz@gmail.com"},"directories":{},"maintainers":[{"name":"jglanz","email":"jonathan.glanz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atlassian-oauth-connect_1.0.10_1643049050760_0.9044670740536935"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-13T00:49:08.975Z","1.0.3":"2021-12-13T00:49:09.194Z","modified":"2022-04-04T10:44:43.303Z","1.0.4":"2021-12-13T00:49:53.460Z","1.0.5":"2021-12-13T00:51:48.870Z","1.0.6":"2021-12-13T00:52:45.894Z","1.0.9":"2021-12-13T01:00:19.966Z","1.0.10":"2022-01-24T18:30:51.114Z"},"maintainers":[{"name":"jglanz","email":"jonathan.glanz@gmail.com"}],"description":"Atlassian Connect OAuth2 library","keywords":["atlassian","connect","atlassian connect","forge","oauth","oauth2","3lo"],"repository":{"type":"git","url":"https://github.com/3fv/atlassian-oauth-connect.git"},"author":{"name":"Jonathan Glanz","email":"jonathan.glanz@gmail.com"},"license":"MIT","readme":"# Atlassian OAuth 2 (3LO) Browser/Server Client\n\n## Install\n\nIt's a properly configured hybrid module,\nso both `commonjs` & `module`/`esm` runtimes are\nsupported, which means that both `browser` &\n`node` environments can you the entire \nlibrary excluding the `decode` functionality,\nwhich I'll eventually convert for browser support\nusing `cryptojs`, but it's transparently functional\nin any evironment now\n\n```shell\nyarn add @3fv/atlassian-oauth-connect\n```\n\n## Example Implementation (not for prod use)\n\n### Prequistes\n\nFirst, make sure you've got `direnv` installed via your package manager of choice `brew`, `apt`, `pacman`, etc...\n\n\n### Setup\n\nCopy `.envrc.templace` to `.envrc` and fill in all the missing fields.  Also, the scope list is `robust`, but the purpose is\nto show near every currently available scope, so, go ahead and \npair it down to what you need.\n\nPopulate your redirect URI, client id, and client secret with the values you entered/received [Atlassian Developer Console](https://developer.atlassian.com/console/myapps) when your configured your app\n\n*WARNING*: As mentioned, this is just an example; in a real world scenario the configuration would come from another system like `AWS AppConfig` with appropriate secret management, etc.\n\nFirst, copy the file: `cp .envrc.template .envrc` \n\nNext, populate your app's values from the aforementioned `Atlassian Developer Console` App Registration.\n\n```shell\n# IN CASE YOUR SHELL DOESN'T DO THIS FOR YOU\nPATH_add $PWD/node_modules/.bin\n\n# SCOPES FOR AUTHORIZATION.\n# THEY MUST BE SPACE DELIMITED\nexport ATLASSIAN_SCOPE=\"\\\n  read:me \\\n  offline_access \\\n  read:jira-user \\\n  read:jira-work \\\n  write:jira-work \\\n  manage:jira-project \\\n  manage:jira-configuration \\\n  manage:jira-webhook \\\n  read:confluence-content.all \\\n  read:confluence-content.summary \\\n  write:confluence-content \\\n  write:confluence-space \\\n  write:confluence-file \\\n  read:confluence-props \\\n  write:confluence-props \\\n  manage:confluence-project \\\n  manage:confluence-configuration \\\n  search:confluence\"\n\n# APP REGISTRATION DETAILS\nexport ATLASSIAN_REDIRECT_URI=<YOUR_ATLASSIAN_REDIRECT_URI>\nexport ATLASSIAN_CLIENT_ID=<YOUR_ATLASSIAN_CLIENT_ID>\nexport ATLASSIAN_CLIENT_SECRET=<YOUR_ATLASSIAN_CLIENT_SECRET>\n```\n\n### Run the example \n\nThe example server is a very basic html page and express web server that together function as a fairly complete tooling for\ntesting & verifyingthe atlassian connect integration.\n\nThe source is here [./src/example/server.ts](./src/example/server.ts) & [./src/example/index.html](./src/example/index.html)\n\n```\n# Install Deps\nyarn\n\n# Build & Run Example Server\nyarn example:server:start\n```\n\nNow you can open a browser to [http://localhost:4000](http://localhost:4000) and play around\n\n\n### Hackup to play with Atlassian Connect\n\nI figured you'd probably get annoyed if this wasn't easy,\nso it's all scripted\n\nTo start up the typescript compiler in watch mode\nand server via `nodemon`, just run the following\n\n`yarn run example:server:dev`\n\n## Features\n\n- `getAccessibleResources()` queries for all resources (`projects` & `spaces`) for which a user accepted grants. \nHere's an example response.\n\n```json\n[\n  {\n    \"id\": \"00000000-0000-0000-0000-000000000000\",\n    \"url\": \"https://3fv.atlassian.net\",\n    \"name\": \"3fv\",\n    \"scopes\": [\n      \"manage:confluence-configuration\",\n      \"search:confluence\",\n      \"write:confluence-props\",\n      \"read:confluence-props\",\n      \"write:confluence-file\",\n      \"write:confluence-space\",\n      \"write:confluence-content\",\n      \"read:confluence-content.summary\",\n      \"read:confluence-content.all\"\n    ],\n    \"avatarUrl\": \"https://site-admin-avatar-cdn.prod.public.atl-paas.net/avatars/240/triangle.png\"\n  },\n  {\n    \"id\": \"00000000-0000-0000-0000-000000000000\",\n    \"url\": \"https://3fv.atlassian.net\",\n    \"name\": \"3fv\",\n    \"scopes\": [\n      \"manage:jira-configuration\",\n      \"manage:jira-project\",\n      \"manage:jira-webhook\",\n      \"write:jira-work\",\n      \"read:jira-work\",\n      \"read:jira-user\"\n    ],\n    \"avatarUrl\": \"https://site-admin-avatar-cdn.prod.public.atl-paas.net/avatars/240/triangle.png\"\n  }\n]\n```\n- `retrieveAccessToken()` for code to token exchange\n\n- `getUserProfile()` to retrieve the current user profile.\n```json\n{\n  \"account_id\": \"0000000000000\",\n  \"email\": \"aaaa@bbbbbbbb.com\",\n  \"name\": \"Jonathan Glanz\",\n  \"picture\": \"https://secure.gravatar.com/avatar/...\",\n  \"account_status\": \"active\",\n  \"last_updated\": \"2021-11-15T14:49:38.747Z\",\n  \"nickname\": \"Jonathan Glanz\",\n  \"locale\": \"en-US\",\n  \"extended_profile\": {\n    \"job_title\": \"Software Engineer\",\n    \"team_type\": \"Software Development\"\n  },\n  \"account_type\": \"atlassian\",\n  \"email_verified\": true\n}\n```\n\n- Token refresh rolling functionality; all the requirements to implement refresh token rolling, \nincluding the actual refresh token (if you specified the `offline_access` scope) & the expiration data, so you can implement your own refresh token rolling or wait for me to find a reason  :grin:\n\n## Todo\n\n- [ ] Signature Verification (OOB the `atlassian-jwt` package chucks errors when verifying the returned tokens)\n- [ ] Caching, right now, if you call `getUserProfile`, `retrieveAccessToken`, etc., every call no matter identical params or not, query the endpoints; so this is kind of important\n- [ ] Unit tests would be a good idea  (started & configured, just not implemented :smile:)\n- [ ] Plus a few e2e cypress tests (started)\n\n## Credit\n\nWritten with love in #NYC by [@jglanz](https://github.com/jglanz) 3FV. Enjoy","readmeFilename":"README.md"}