{"_id":"@asgardeo/token-exchange-plugin","_rev":"7-bcb0ba585c1f39f62bbcf95824e7f0bb","name":"@asgardeo/token-exchange-plugin","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.0":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.0","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^0.4.1"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"859f46bd72c7272453b8fbcdd5eeb19934f61738","_id":"@asgardeo/token-exchange-plugin@0.1.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-VTj3Q94IN6jxUFVeJ8CcIyhroPuBUtdEcVSqyl8KZD6yx0nZotkKZy+IdYtQtOb0fE4EMcV8YjT1+46oEzqzhw==","shasum":"fac1be27712ced5588a56b0c59e3fae55f48fecc","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.0.tgz","fileCount":57,"unpackedSize":6139515,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWRGVLwcuCd8Hkkj26N29e7275uN/8YPwOb8D1ECyT8AiAS8j6Xh7jfDZeSdHj+QBSG9ldwJ5K448DC4vjVjVLgeQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisV7jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxFQ/+KA5+reD050bmyzojzjxIy/qU5Ey5TbgJ7mJqR0WKu4drHfD8\r\ndXK0XwV5oPMlMkyyalFzTCH5ftE8zHlbREJe1jmISGDADEX8Mwmdte/7OiKH\r\n/GvgzLZGZUaT+d/l0AGhf+rup7UqXN2JySfSOVlp1rkZ0/PEnkGwMXtePTOd\r\npbhiBh1AhkuM250vjadf0V+6ND66hHjvPnNkilFnyfhLQ/t+e20mdnVsbCBa\r\n+3RpT457NCzyrPZgaSc6/273q7wvnpJqYRbvLkKObU3x1ddl+af7J0RH9BHo\r\nifKGEVsMH8xy3CA4Iq1rjFjgs7aUk3Wm5TPUzZkGgz5yJrsMoR51qQ7D0bes\r\nwk+yUalUvmzdKFFuRt8Sgh9g/1ujy+6ldE0VcsQqzgK2AfHnrWj0erOIR3xV\r\nEIVBc6QCl1UFe3mGksCzbKf4jn8HZ866yfYRlJ5a4aWdUOB8RJUIrhMTIp8p\r\nYHf4aP9XOohWpgtlLmMDdQdLLXH6P6snux+eTiEEkDtzA7ZLr5DzNMRXGSA2\r\n0dckoZbcc54+wNJGhQ0UQeWsqHNT95L0bIBxNcR0NVdeQM2vHNajd/dLtR37\r\nUJlNZo+JqVcUfKORIXyrwDYL8BXT0jlrSagkZBR5kVGRrty8gVenWBXDgnDc\r\n6r32PX4VIyJpEBt9tnaYPcSr5aQeEUsuqLw=\r\n=/QGg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.0_1655791331604_0.36634637602438436"},"_hasShrinkwrap":false},"0.1.1":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.1","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^0.4.1"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"9177d9254a3165638ff2664d4e39fb95784e8468","_id":"@asgardeo/token-exchange-plugin@0.1.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-SsOtfYekFNw5Hns17+fhZD32X4EB9Z1nubQbPZWSng7I1aJTKz5r5g2eOWvNiD2Maa4ZM1EdUpHkR/D/jdzqNQ==","shasum":"3f368f56e04d3e2c2a68eb53dec14993ddf7ed05","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.1.tgz","fileCount":57,"unpackedSize":6139515,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSd2d8nvTpVBpUMjRy9BLrOkThhIH4841FmRely5uh8AIgJfweV/lS4lF/xlRx5qHnA8pIQmOpSU8/d72kAZ7+cRQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisqHnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqB+xAAi1D05fOfE7cbBjHoLP4w/2a19n3jI+zekav3ns6/cgJWSLuk\r\nI94Tu56wJOIC2b6cLcdrK/AuTWfdMINAhH4BMVs0mAQvkgARWLVwEx62DsCs\r\n8v7HSa6a6WXbvrP0XN8CHSFWLxSF2BmrUUEf/Eh6690YrOhw5b+omlpwZ4jc\r\naBlkozp7U/XOycHfLrLnMTPxS2MAqZXUI4G5fd0Or84UsCLKQTS3YSaGJ/7A\r\n0/xcF3k5udbqqMgoN2mNfvv2q3Ahz54MRCaNJKT7DK6Z/9xwR2q88JPvT6wK\r\n0a5KCuCmudaZXWGjPbME8xSuBTKoqDsDNdChlhlx6/WFWmq6nKukl+FXAZz1\r\nHOAzL0xUmqfcrkUTldcGKwxadRcll4HYQIlD81SR5MIkx9VD4SNODEU+GJuh\r\nDPKhOFaOLGzWGjwiV6Ky5GWPM77tQPljTEZVwc+m50FPDuZMNwiMgFtfZkBE\r\n69IWDHmdRQtoHXauSfMEKQ4CZUW0QtknsZ/xWNudKhs9gglff+8N6KWLFdW3\r\n+0zOrV2CUyerBqiRCbo3QwNdwxeI1KltGh0SNv5nKI7H5PzQ0trISQl6jWmv\r\n++OxiLaiSPaUfqE0YZ/FRLXUom9fK4jqqO1WbQ+MEVS5s/hEiM6rMJMxdN7Y\r\nsJEF82IqM5S3dE/VXe5UDZ8dMlMHE7UDv58=\r\n=ARKV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.1_1655874022720_0.5623043733796691"},"_hasShrinkwrap":false},"0.1.2":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.2","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^0.4.1"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"63b957e745be704a80ac790d86c2dee4bb4fa529","_id":"@asgardeo/token-exchange-plugin@0.1.2","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-MTPrS4vBRUqsrsXeEl1f9flQzKkUTQJmLY+xwGmrItvLlZNMmH0oB1KOEELxcrU5i+EI7x7wT10yA3GSza1cyg==","shasum":"5a66c5cdb47cedbeb41584251a52e6cc0f4cb85c","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.2.tgz","fileCount":57,"unpackedSize":6151029,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3WgnIvCXl3ZtNmA8TVx08p4stDCrsMnuGrfpEAo9WlwIhAIetIGF2ODrwJM1l3GhBsbFsOk+crdoywHp/MvFJG4ij"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivTtXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmporg//byHFM1oKDIgk6NfHZbmZOG8W7aJ0ftWzJTb8hyZP6xRQ2g0M\r\n9buFnbnDws61QNih4RPzCCkhd1uPwOBxvm5z/sizmXJW81Z7Y0+/hJzPTdzd\r\nPwulVKfQUSRVjL0RznvHoLkn1lPYKEGmqQXjyT+c6iewV4BshZoaILdGzGsq\r\nKnJ1/9ud+gFs4+jtBx/83GuX5xrQVVsB5KhWizj9A7PT35bYRy0LiMBKq/X7\r\nOAf02C9DKLun0NUb61butBAjo6mkbD8dgM3iWzp0YiABZG8QUdoTja97lOng\r\n3uVRjUO7mbmutWGFvzJj7cLGJ5+RKhMUhG6KdVw4nm0SHTGjtPc5fmqAXRz5\r\nofpykVn/Bf/W6j/Dz351kKN8plFpTC2yds0eXS8qEoMINYw67YqsjoRKTrIs\r\nul39Aw6BiYFXGlqrG/Jq4Oan1pIOGgavXBqNDxS1YR4dq6RPaqlIgWrGNnEB\r\n8ZI1Wt4uBcZ9+AyYnxHxVVFF8p8MbBI3oCHek5w/ehe8rgaIEyJUiAmXUcd7\r\n2xU9nBrZ+LI+j5F8K5FBDsSatY/dJijus7bNwkkgElf9SUUXw7fBWt86Uc8t\r\nOWGTDcxo71b0q2xXWx7t71KRO2Ns/Ko74KWT5bJUs8fvgoEhPd7YFkUEEd0i\r\nWCKKIsSjXBwf1YePflr+g4B+u4gEmq1m5hc=\r\n=gUxz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.2_1656568663019_0.28235672150618574"},"_hasShrinkwrap":false},"0.1.3":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.3","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^0.4.4","flatten-anything":"^3.0.2"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"9af564817b9aa469080d17cc431a078aec7a5a34","_id":"@asgardeo/token-exchange-plugin@0.1.3","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-eU1yYrXsDq6pHIKbqKce7H7eC3FTlViK4WNuhX5R2il+g+Kiam/PoDD8vR+ZE6p6QC2FygImDRjtZn9DxKhstw==","shasum":"bf97401d6edfb5e35f98060814a87ef7b734950e","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.3.tgz","fileCount":57,"unpackedSize":5201816,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZD4BukdMMzpY7MaAvEa4ywgpw4zornsS5LRadFXc+/AiA2jLTV66KLTO7j33inA+a3UdTZO3+AkvXiQqje/pc18Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivwLCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpw2BAApLgn2Ogt2YVpL6mqDf8e8QvHJbdKOK+sfTgKbS/grTcmg3XC\r\nShBAE5jGJS5L9LL3tsiH0lWWq1RMuz3xlfGKz9s4AUEfvqvdUSaelDVMPeK4\r\nKKQ7AnbvuGex2X2zsF5o5eikwV43V5BM+wcjGUp5qvlTQ89T4qOcKCWmAAIU\r\nsxKD6QD32Dp/KFEn9HReupxZ4PS+blrvAgx4TZYSALWw9r+Nbso809en/XDw\r\nuygrDN+KlGkGZkO7tzUKMN1p4WDrzcprix00TRY0aTCxO56qDSoMylPiTi0T\r\n08zdAecRLgg8FYhx9wL7c/pq3GK+ZxpJYvx9NkpBsr+flxEgQofIb5moY/lS\r\nPZ/ERmU/aHqSQFF2p83qqUZQEej9k7w/W0Vy1NRGVIkxGQL97Wz5kbN8Dk/0\r\n3QatbSr2j8DGRTbkHg+j8rLWW6fNnHiYkn3ck2uRdNBJGbmAhwI/i7fLy9KT\r\n9VWMhncIGDOsHPT+Y6mfFW1dW2Gg0GIJSOaRVem1niukeQp0a1Iwl2yX4AWK\r\nMIoDvpWcWQ13h2Dk62lZ9tRCTcT8CWSNtBrIgvE6BVg2USZT8kf5+Yfjx8Ec\r\nqiehYiuRW1IjA4BT2okcY41i5TlGUJ8cLoD+H2ktDYnqRNIBDewdXClQkJX1\r\nPl3n2xM7IF7k2IqOivLbASupcy0/BJMElMo=\r\n=m43d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.3_1656685249900_0.5572430100035868"},"_hasShrinkwrap":false},"0.1.4":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.4","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^0.4.4"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"93c653f6b73db0c800e316f00dc2262c74a7417c","_id":"@asgardeo/token-exchange-plugin@0.1.4","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-nRUWLnwI/nCxZQgLqg7AwC4K7t2w11teK4GmAZ8Dzr/yiT+jDR0mSInK9ycCFQMeX/sy4/UbjDhSwzZqwVn3bw==","shasum":"ec4d62047ad55fd3a4c8f38617302b4f3c8377c1","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.4.tgz","fileCount":57,"unpackedSize":5143632,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCptA/dfVL8PdFA/YPuF/xePNZxW6V8laafXRzIDd+XiQIhAPdoHM5z/zFggJOawXcmMfIsCO3JRF9Rc6w/omaolgKP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi54NeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWdQ//V9+RMe6ICXqkZ+9EHLoTGqWHHannSZsn8u0eDgLvXBjRaBDi\r\nWoDqNR0PNSEXkqC+DNb/2m3NUP/5n+r6T7VHPXyNyTOfKWOdUB3OgAFs4Tf+\r\naJrICO/xRPGZ0jtFwnO/Ev8iRPdWDKxYvaD1cReZuecllIoi0WLmPhLkT5Ak\r\nSi+uYeOS+k2PgggBVxuWu0s/87rEdA0cbhyZnYRyz6IMeIam29TJUCWq9Dtv\r\n4ZLToR9Nl7tzKHLGAw3TneOf19703lR/5spSpYn2+evJ+EzbuT1gR7FTQ2t6\r\n3oUW70a41t3zLe9+TIDBiMLmYey7G0L4DVRnyKtgyBX+5cyUxPFOsBkuNS9H\r\npqHJ3dcMuQYUqaS4sXnzrPlW1mlGNuqfqCHwm+z4Te9iDf+49TC7G18MafV7\r\niGkTbYkwTZ+5RMi0YTkRrVDWqvVPpZoP9+LzXKWqfQspXMcfIqm/MOR1aAuM\r\ne5r3N5FMtccN5UyLdc5AoKzCW43jPzHiyZG+hFB6nYcghUMmiXre8eQiDhf5\r\n4Kb2eQ+FzhNWkrP7cIHGkUCHHc71fFMG6UAOvjyUxsrfpjRwgIKXWnsVkB4C\r\nopp0E4+TraVTZZl6L/DCAxWe6KNjCrjTQFJMM+zPFN7kycx2MNQoGsMJ/Zq5\r\n5TCg+4Us8RTqhZhk+1eVbPRnfEUt9TdFX88=\r\n=t/41\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.4_1659339614387_0.07199829923473411"},"_hasShrinkwrap":false},"0.1.5":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.5","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^0.4.8"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"774d9f5f355d87ddf6b46ba35f702556c84c1335","_id":"@asgardeo/token-exchange-plugin@0.1.5","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-GowyvD5ePsOinJcxiyTZLcAEibaa+/NCwakjuKCtQPLKLQRtw6pU/SS/7DNqvEo6MWgmiVrjoiEpSnw/5dB04Q==","shasum":"1a6bab10e68838817b4302ccc2ccbf0926f710f2","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.5.tgz","fileCount":57,"unpackedSize":5127258,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8kFDlssZfvZlPjsYWzFd6otrsjpZeJcQlT1qbQkMNdgIgEIKtsqMp22WCf0j2FgaCETnCKt3Rrnskim4+RIVE7fw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDuENACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1jQ/+Ipao4i0fzKLRzU0w2t98heKbXJ5p/s8vr5rTNGQDP5ULA3bS\r\nYmCFTC2uLA0lwHzqffgb89MCBUDXzjVLbZzO+EKB4fSZBLZg4ha4O4YFmSBQ\r\nlLKWmAt8bCrL8PSS4pkizw//xyAQrvfwuDtdLPCNkh4egFI5HTRIpkmu2jNa\r\n8tsZoxQW0I154JMTwQ2UliqeAdSfx79/zpCnuQfnCTBXVW525rkW3HKhjsGC\r\nze1pWgugvAqVkxW+JSpa60XHQ2lJWMq5VtEbD8eSOk0IE8T3WDmh1pXb9dLo\r\na4ot11F/nn5WVV3Sl5Vc38wDxia2UtSfml4qvk9LXGTIPF+Lulv/6DE1ToCC\r\n+ZZ4N4gfm8DJ4v30DJh1vBfDEpq9y/zwicBlso4glDAfW/aM+5S2+mmlgEXQ\r\nYKr3FjqKVVjUy4T9aDOw8yNpK80u+EX3d8eNjHE4qyEZcQ6H4r4yQb8QinAt\r\nH04anzoRkI/89ISJkyRBOloMJh4DH3LgN9vQ+xIzT28tOz6hd29DvQQsmBE6\r\nSTjKOFjjnMt3T26SS8YgXTkxvbiz+gtkbl1QNBZXI6WtmDthofU70TZNyDh3\r\n6oIRuVcy+6ahIt2WEEXb0V2uIhFvZnEJ2Vex3qK8NjJwF+W4F4cFP0TrF37s\r\n7C4SdzbevwTXQLIL2BRM2E0oRHr+5hvfyvM=\r\n=hQiK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.5_1661919501056_0.18502999939013942"},"_hasShrinkwrap":false},"0.1.6":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.6","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^0.4.8"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"5f1fe082b69fed0ebce3d9958183b3e97c0698cd","_id":"@asgardeo/token-exchange-plugin@0.1.6","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-+7tEZs7ojCwyH0NJ0lEW/EdTfTdGdSds/gXdclWijOvdhj0Qwsg3bNfVYa5nWKpNKyhU9C3LqmEiKyKLRrIBvg==","shasum":"391afd52e5003ba70c1c450fc83cf818d96b1107","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.6.tgz","fileCount":57,"unpackedSize":5127064,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHbpsQJ0P0M5QB4L7c4mV8An72mZWR9hRPgeGKhWvfItAiEAun5IsZvXA3GEt+8TpAG9C62Hr3BdJb/Wf9cZcisH5+A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTnz7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrqog/9Ffl6Bv0rNO3VelpA1O2QCirEIpc4MZ/XhiZrfhGqOE0+P/79\r\nrPCIxGp63gqMiULwHUvvvILJEuNzZdA8iLIcikiH+1CwdihIBi+HOGNURtS/\r\n7XuXCeh8Px+tg1/s3eyo3dWiFNCRlS3y3cD7KS0BGdX0RHaRj/4aKqmoJGZc\r\ndF3f4eInei6Nm5fYTobA1BsMAMnsK+vz107aDwGPpi1xYfz9QLo7ed/+LdSx\r\nwJrY/5eDSXFe0liqzDKvELNXtrze5LNfhymdj/MZz4gWArWBh9ZmqKK2QUx1\r\nIpdVJCkOq2lYXHt2QAIdl/EnYiO3bvT9EI7o+fPlWXx+1MTvlYxk6StSLbk+\r\n8eeTKKOmn/CQakxJMCJl22pKep6fuHbmiK3NFYXE5kGTFopWWR/jfwS5m1mx\r\nbtcYaELBjxVSsWsVU40Hafc53w0ulgjftrFP/bW1aCtYYvTPdrVWO5AnUUcl\r\n2yP8b5wzGWjg/if0fJNfBI3y7/g7JH9NwB9Sfy9C/5rsbHZ98HpxYn9+M/oF\r\nbb/xEC6LWcMs2sjVkEUe2x5HwoIYb5w9EDVdq/vnOTFFTZqTkLujky3hZG3d\r\nJHP3IRNie3KCmWu7ltiffv7iaXInlw0D81gaFI6cpDUCNl3gAWPLXwF5vOGG\r\nXLx9A5ID/SIcFitDUN5OsLPZkIJGtYhkSSA=\r\n=ueJt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.6_1666088186919_0.7215449058502457"},"_hasShrinkwrap":false},"0.1.7":{"name":"@asgardeo/token-exchange-plugin","version":"0.1.7","description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","main":"dist/token-exchange.production.js","module":"dist/token-exchange.production.esm.js","types":"dist/src/index.d.ts","scripts":{"lint":"eslint --ext .js,.ts .","fix-lint":"eslint --ext .js,.ts . --fix","build":"cross-env NODE_ENV=production rimraf dist && rimraf umd && yarn type-check && rollup -c","build:dev":"rimraf dist && rimraf umd && yarn type-check && cross-env NODE_ENV=development rollup -m -c --watch --environment BUILD:development","type-check":"tsc","type-check:watch":"yarn type-check -- --watch","clean":"rimraf dist && rimraf umd && rimraf node_modules","prepublish":"yarn build"},"author":{"name":"Asgardeo"},"license":"Apache-2.0","dependencies":{"@asgardeo/auth-spa":"^1.0.3"},"devDependencies":{"@babel/cli":"^7.17.10","@babel/core":"^7.18.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-decorators":"^7.17.12","@babel/plugin-transform-modules-commonjs":"^7.18.0","@babel/plugin-transform-runtime":"^7.18.0","@babel/preset-env":"^7.18.0","@babel/preset-typescript":"^7.17.12","@babel/runtime":"^7.18.0","@rollup/plugin-babel":"^5.3.1","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-eslint":"^8.0.2","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.3.0","@rollup/plugin-replace":"^4.0.0","@types/crypto-js":"^4.1.1","@types/node":"^17.0.35","core-js":"^3.22.6","cross-env":"^7.0.3","rimraf":"^3.0.2","rollup":"^2.74.1","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","rollup-plugin-web-worker-loader":"^1.6.1","typescript":"^4.6.4"},"browserslist":["defaults"],"gitHead":"b8aa107cb37d056bbea47c407d92f49a8dced6fc","_id":"@asgardeo/token-exchange-plugin@0.1.7","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-QQgV/1yIZ8oCvn8rR/DqtUOcbgcIC23fYiV4nUi5Nv99ZAPBvl5C3eWBk2wgjFUY+4t8eTEweLvJJdV5mWfopw==","shasum":"05c3adc3ff8d7f03deb708f90b0323d25f69f119","tarball":"https://registry.npmjs.org/@asgardeo/token-exchange-plugin/-/token-exchange-plugin-0.1.7.tgz","fileCount":57,"unpackedSize":5127222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmkWtMka+8QVCy5AfcFUaNIxSygapIhaCf32icpE0VEAIgdegMYrr6da7hnI+3G0QTAe8WO935lnOHdcT1fGCi6Vg="}]},"_npmUser":{"name":"wso2-org","email":"techops@wso2.com"},"directories":{},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/token-exchange-plugin_0.1.7_1684222079933_0.2198883853225857"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-21T06:02:11.542Z","0.1.0":"2022-06-21T06:02:11.902Z","modified":"2023-05-16T07:28:00.491Z","0.1.1":"2022-06-22T05:00:22.992Z","0.1.2":"2022-06-30T05:57:43.228Z","0.1.3":"2022-07-01T14:20:50.122Z","0.1.4":"2022-08-01T07:40:14.646Z","0.1.5":"2022-08-31T04:18:21.305Z","0.1.6":"2022-10-18T10:16:27.169Z","0.1.7":"2023-05-16T07:28:00.333Z"},"maintainers":[{"name":"wso2-org","email":"techops@wso2.com"}],"description":"Token Exchange Plugin for Asgardeo Single-Page Applications.","homepage":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange#readme","keywords":["Token-Exchange","Plugin","Asgardeo","authentication","oidc","oauth2","spa"],"repository":{"type":"git","url":"git+https://github.com/asgardeo/asgardeo-auth-spa-token-exchange.git"},"author":{"name":"Asgardeo"},"bugs":{"url":"https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/issues"},"license":"Apache-2.0","readme":"# asgardeo-auth-spa-token-exchange\nToken Exchange Grant Plugin for Single Page Applications (SPA) to be used with Asgardeo.\n\n![Builder](https://github.com/asgardeo/asgardeo-auth-spa-token-exchange/workflows/Builder/badge.svg)\n[![Stackoverflow](https://img.shields.io/badge/Ask%20for%20help%20on-Stackoverflow-orange)](https://stackoverflow.com/questions/tagged/wso2is)\n[![Discord](https://img.shields.io/badge/Join%20us%20on-Discord-%23e01563.svg)](https://discord.gg/wso2)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/wso2/product-is/blob/master/LICENSE)\n[![Twitter](https://img.shields.io/twitter/follow/wso2.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=wso2)\n\n---\n\n## Table of Content\n\n-   [Introduction](#introduction)\n-   [Prerequisite](#prerequisite)\n-   [Getting Started](#getting-started)\n-   [Try Out the Sample Apps](#try-out-the-sample-apps)\n-   [Models](#models)\n    -   [CustomAuthClientConfig](#CustomAuthClientConfig)\n    -   [STSConfig](#STSConfig)\n-   [Develop](#develop)\n    -   [Prerequisites](#prerequisites)\n    -   [Installing Dependencies](#installing-dependencies)\n-   [Contribute](#contribute)\n-   [License](#license)\n\n## Introduction\n\nAsgardeo Auth SPA Token Exchange Plugin allows single page applications to perform token exchange grant.\n\nThis plugin manages two seperate user session instances to hold Asgardeo(IDP) and Security Token Service (STS) session data.\n\n## Prerequisite\n\nCreate an organization in Asgardeo if you don't already have one. The organization name you choose will be referred to as `<org_name>` throughout this document.\n\n## Try Out the Sample Apps\n\n### Running the sample apps\n\n1. Download the sample app from the `samples` folder.\n\n2. Update configuration file `src/config.json` with your app details.\n\n3. Add Choreo API endpoint under `API_ENDPOINT` property under `src/pages/home.tsx`.\n\n**Note:** You need `stsConfig` and `stsTokenEndpoint`additional to the default Asgardeo Auth Client configuration declared in the React SDK Documentation [here](https://github.com/asgardeo/asgardeo-auth-react-sdk#configuration).\n\nRead more about the stsConfig [here](#STSConfig).\n\n```json\n{\n    \"clientID\": \"\",\n    \"baseUrl\": \"https://api.asgardeo.io/t/<org_name>\",\n    \"signInRedirectURL\": \"https://localhost:3000/signin\",\n    \"signOutRedirectURL\": \"https://localhost:3000/login\",\n    \"scope\": [\"openid\",\"email\",\"profile\"],\n    \"stsConfig\": {\n        \"client_id\": \"\",\n        \"scope\": [],\n        \"orgHandle\": \"\",\n    },\n    \"stsTokenEndpoint\": \"<CHOREO_TOKEN_ENDPOINT_URL>\",\n    \"resourceServerURLs\": \"<ADD_API_ENDPOINT_BASE_URL>\"\n}\n\n```\n\n3. Build and deploy the apps by running the following command at the root directory.\n\n```bash\nnpm install && npm start\n```\n\n4. Navigate to [`https://localhost:3000`](https://localhost:3000) (or whichever the URL you have hosted the sample app).\n\n## Getting Started\n\n### 1. Installing the Package\n\nInstall the library from the npm registry.\n\n```\nnpm install --save @asgardeo/token-exchange-plugin\n```\n\n### 2. Import `AuthProvider`, `useAuthContext` and Provide Configuration Parameters\n\n```TypeScript\n// The SDK provides a provider that can be used to carry out the authentication.\n// The `AuthProvider` is a React context.\n// `useAuthContext` is a React hook that provides you with authentication methods such as `signIn`.\nimport { AuthProvider, useAuthContext } from \"@asgardeo/auth-react\";\nimport { TokenExchangePlugin } from \"@asgardeo/token-exchange-plugin\";\n\n// Add additional `stsConfig` and `stsTokenEndpoint`.\nconst config = {\n     signInRedirectURL: \"https://localhost:3000/signin\",\n     signOutRedirectURL: \"https://localhost:3000/login\",\n     clientID: \"client ID\",\n     baseUrl: \"https://api.asgardeo.io/t/<org_name>\",\n     stsConfig: {\n        \"client_id\": \"\",\n        \"scope\": []\n    },\n    stsTokenEndpoint: \"\"\n};\n\n// Encapsulate your components with the `AuthProvider`and pass an instance of TokenExchangePlugin.\nexport const MyApp = (): ReactElement => {\n    return (\n        <AuthProvider config={ config } plugin={ TokenExchangePlugin.getInstance() }>\n            <Dashboard />\n        </AuthProvider>\n    )\n}\n\nconst Dashboard = (): ReactElement => {\n    const { signIn } = useAuthContext();\n    const [ signedIn, setSignedIn ] = useState(false);\n\n    const handleClick = (): void => {\n        signIn(() => {\n            setSignedIn(true);\n        });\n    }\n\n    return (\n        <div>\n            { signedIn && <div>You have signed in!</div> }\n            <button onClick={handleClick}> Sign In </button>\n        </div>\n    );\n}\n```\n\n## APIs\n\n### getDecodedIDPIDToken\n\n```typescript\ngetDecodedIDPIDToken(): Promise<DecodedIDTokenPayload>\n```\n\n#### Returns\n\nA promise that returns with the IDP [`DecodedIDTokenPayload`](#DecodedIDTokenPayload) object.\n\n#### Description\n\nThis method returns a promise that resolves with the decoded payload of the JWT ID token provided by the IDP.\n\n#### Example\n\n```TypeScript\ngetDecodedIDPIDToken().then((idToken) => {\n    // console.log(idToken);\n}).error((error) => {\n    // console.error(error);\n});\n```\n---\n\n\n### httpRequest\n\n```typescript\nhttpRequest(config: `HttpRequestConfig`): Promise<HttpResponse>;\n```\n\n#### Arguments\n\n1. config: `[HttpRequestConfig](#httpRequestConfig)`\n   A config object with the settings necessary to send http requests. This object is similar to the `AxiosRequestConfig` but provides these additional attributes:\n\n   |Attribute|Type|Default|Description|\n   |--|--|--|--|\n   |`attachToken`|`boolean`|`true`|If set to `true`, the token will be attached to the request header.|\n   |`shouldEncodeToFormData`|`boolean`|`false`|If set to `true`, the request body will be encoded to `FormData`. The body (specified by the `data` attribute) should be a Javascript object. |\n\n#### Returns\n\nA Promise that resolves with the response.\n\n#### Description\n\nThis method is used to send http requests to the identity server. The developer doesn't need to manually attach the access token since this method does it automatically.\n\nIf the `storage` type is set to `sessionStorage` or `localStorage`, the developer may choose to implement their own ways of sending http requests by obtaining the access token from the relevant storage medium and attaching it to the header. However, if the `storage` is set to `webWorker`, this is the _ONLY_ way http requests can be sent.\n\nThis method accepts a config object which is of type `AxiosRequestConfig`. If you have used `axios` before, you can use the `httpRequest` in the exact same way.\n\nFor example, to get the user profile details after signing in, you can query the `me` endpoint as follows:\n\n#### Example\n\n```TypeScript\nconst auth = AsgardeoSPAClient.getInstance();\n\nconst requestConfig = {\n    headers: {\n        \"Accept\": \"application/json\",\n        \"Content-Type\": \"application/scim+json\"\n    },\n    method: \"GET\",\n    url: \"https://api.asgardeo.io/scim2/me\"\n};\n\nreturn httpRequest(requestConfig)\n    .then((response) => {\n        // console.log(response);\n    })\n    .catch((error) => {\n        // console.error(error);\n    });\n```\n\n---\n\n### getDecodedIDToken\n\n```typescript\ngetDecodedIDToken(): Promise<DecodedIDTokenPayload>\n```\n\n#### Returns\n\nA promise that returns with the [`DecodedIDTokenPayload`](#DecodedIDTokenPayload) object.\n\n#### Description\n\nThis method returns a promise that resolves with the decoded payload of the JWT ID token.\n\n#### Example\n\n```TypeScript\ngetDecodedIDToken().then((idToken) => {\n    // console.log(idToken);\n}).error((error) => {\n    // console.error(error);\n});\n```\n---\n\n\n### httpRequest\n\n```typescript\nhttpRequest(config: `HttpRequestConfig`): Promise<HttpResponse>;\n```\n\n#### Arguments\n\n1. config: `[HttpRequestConfig](#httpRequestConfig)`\n   A config object with the settings necessary to send http requests. This object is similar to the `AxiosRequestConfig` but provides these additional attributes:\n\n   |Attribute|Type|Default|Description|\n   |--|--|--|--|\n   |`attachToken`|`boolean`|`true`|If set to `true`, the token will be attached to the request header.|\n   |`shouldEncodeToFormData`|`boolean`|`false`|If set to `true`, the request body will be encoded to `FormData`. The body (specified by the `data` attribute) should be a Javascript object. |\n   |`shouldAttachIDPAccessToken`|`boolean`|`false`| If set to `true`, the IDP access token will be attached to the the request `Authorization` header. |\n\n#### Returns\n\nA Promise that resolves with the response.\n\n#### Description\n\nThis method is used to send http requests to the identity server. The developer doesn't need to manually attach the access token since this method does it automatically.\n\nIf the `storage` type is set to `sessionStorage` or `localStorage`, the developer may choose to implement their own ways of sending http requests by obtaining the access token from the relevant storage medium and attaching it to the header. However, if the `storage` is set to `webWorker`, this is the _ONLY_ way http requests can be sent.\n\nThis method accepts a config object which is of type `AxiosRequestConfig`. If you have used `axios` before, you can use the `httpRequest` in the exact same way.\n\nFor example, to get the user profile details after signing in, you can query the `me` endpoint as follows:\n\n#### Example\n\n```TypeScript\nconst auth = AsgardeoSPAClient.getInstance();\n\nconst requestConfig = {\n    headers: {\n        \"Accept\": \"application/json\",\n        \"Content-Type\": \"application/scim+json\"\n    },\n    method: \"GET\",\n    url: \"https://api.asgardeo.io/t/{org_name}/oauth2/userinfo\",\n    shouldAttachIDPAccessToken: true\n};\n\nreturn httpRequest(requestConfig)\n    .then((response) => {\n        // console.log(response);\n    })\n    .catch((error) => {\n        // console.error(error);\n    });\n```\n\n---\n\n## Models\n\n### CustomAuthClientConfig\n\n| Attribute         | Type      | Description                                                               |\n| :---------------- | :-------- | :------------------------------------------------------------------------ |\n| `stsTokenEndpoint`   | `string`  | The token exchange endpoint.                                 |\n| `stsConfig`     | `STSConfig`  | STSConfig that will be passed to the `stsTokenEndpoint`.  |\n\n### STSConfig\n\n| Attribute | Required/Optional | Type | Default Value | Description |\n| --------- | ----------------- | ---- | ------------- | ----------- |\n| `client_id`          | Required          | `string`        | -                                                                      | The client ID of the Security Token Service (STS). |                       |\n| `scope`                      | Required          | `string[]`      | `[\"openid\"]`                                                            | Specifies the requested scopes.                                                                      |\n| `resource`               | Optional            | `string`        | \"\"                                                                      | The resource in which client intends to use the requested token.    \n| `audience`               | Optional            | `string`        | \"\"                                                                      | The target service in which client intends to use the requested token.                                   |\n| `actor_token`                  | Optional           | `string` | \"\" | A security token that represents the identity of the acting party.\n| `actor_token_type`                  | Optional           | `string` | \"\" | Type of the security token in the `actor_token` parameter.\n\n**Note:** STSConfig also allows passing custom key-value pairs, which is intenteded to pass into the STSTokenEndpoint.\n\n## Develop\n\n### Prerequisites\n\n-   `Node.js` (version 10 or above).\n-   `yarn` package manager.\n\n### Installing Dependencies\n\nThe repository is a mono repository. The plugin repository is found in the [lib]() directory.\n\n## Contribute\n\nPlease read [Contributing to the Code Base](http://wso2.github.io/) for details on our code of conduct, and the process for submitting pull requests to us.\n\n### Reporting issues\n\nWe encourage you to report issues, improvements, and feature requests creating [Github Issues](https://github.com/asgardeo/asgardeo-auth-react-sdk/issues).\n\nImportant: And please be advised that security issues must be reported to security@wso2com, not as GitHub issues, in order to reach the proper audience. We strongly advise following the WSO2 Security Vulnerability Reporting Guidelines when reporting the security issues.\n\n## License\n\nThis project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}