@asgardeo/auth-react 5.1.2 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/types/src/actions.d.ts.map +1 -0
- package/dist/types/src/api.d.ts.map +1 -0
- package/dist/types/src/authenticate.d.ts.map +1 -0
- package/dist/types/src/authenticated-component.d.ts.map +1 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/models.d.ts.map +1 -0
- package/dist/types/src/public-api.d.ts.map +1 -0
- package/dist/types/src/reducer.d.ts.map +1 -0
- package/dist/types/src/secure-app.d.ts.map +1 -0
- package/package.json +9 -2
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -166
- package/babel.config.js +0 -43
- package/dist/src/actions.d.ts.map +0 -1
- package/dist/src/api.d.ts.map +0 -1
- package/dist/src/authenticate.d.ts.map +0 -1
- package/dist/src/authenticated-component.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/models.d.ts.map +0 -1
- package/dist/src/public-api.d.ts.map +0 -1
- package/dist/src/reducer.d.ts.map +0 -1
- package/dist/src/secure-app.d.ts.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/actions.ts +0 -51
- package/src/api.ts +0 -466
- package/src/authenticate.tsx +0 -325
- package/src/authenticated-component.tsx +0 -43
- package/src/index.ts +0 -23
- package/src/models.ts +0 -138
- package/src/public-api.ts +0 -22
- package/src/reducer.ts +0 -68
- package/src/secure-app.tsx +0 -83
- package/tsconfig.json +0 -26
- package/webpack.config.js +0 -94
- /package/dist/{src → types/src}/actions.d.ts +0 -0
- /package/dist/{src → types/src}/api.d.ts +0 -0
- /package/dist/{src → types/src}/authenticate.d.ts +0 -0
- /package/dist/{src → types/src}/authenticated-component.d.ts +0 -0
- /package/dist/{src → types/src}/index.d.ts +0 -0
- /package/dist/{src → types/src}/models.d.ts +0 -0
- /package/dist/{src → types/src}/public-api.d.ts +0 -0
- /package/dist/{src → types/src}/reducer.d.ts +0 -0
- /package/dist/{src → types/src}/secure-app.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es6.d.ts","../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/actions.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/client-config.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/oidc-provider-meta-data.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/client-config.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/data.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/token.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/custom-grant.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/id-token.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/authorization-url.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/user.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/crypto.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/fetch.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/models/index.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/oidc-endpoints.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/custom-grant-template-tags.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/data.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/parameters.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/scopes.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/fetch.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/constants/index.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/data/data-layer.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/data/index.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/helpers/crypto-helper.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/helpers/authentication-helper.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/helpers/index.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/client.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/utils/authentication-utils.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/utils/index.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/exception/exception.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/exception/index.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/public-api.d.ts","../../node_modules/@asgardeo/auth-js/dist/src/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/constants/messages-types.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/constants/storage.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/constants/hooks.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/constants/session-management.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/constants/parameters.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/constants/errors.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/constants/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/axios-http-client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/http-client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/axios-http-client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/http-client/clients/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/message.d.ts","../../node_modules/axios/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/http-client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/web-worker.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/session-management-helper.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/client-config.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/sign-in.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/sign-out-error.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/models/request-custom-grant.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/helpers/authentication-helper.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/helpers/session-management-helper.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/helpers/index.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/clients/main-thread-client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/clients/web-worker-client.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/worker/worker-receiver.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/public-api.d.ts","../../node_modules/@asgardeo/auth-spa/dist/src/index.d.ts","../../node_modules/@asgardeo/auth-spa/src/models/request-custom-grant.ts","../src/models.ts","../src/api.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","../src/authenticated-component.tsx","../src/secure-app.tsx","../src/public-api.ts","../src/index.ts","../src/authenticate.tsx","../src/reducer.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/dom-events.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/readline/promises.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/test.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/connect/index.d.ts","../../node_modules/@types/body-parser/index.d.ts","../../node_modules/@types/bonjour/index.d.ts","../../node_modules/@types/range-parser/index.d.ts","../../node_modules/@types/qs/index.d.ts","../../node_modules/@types/express-serve-static-core/index.d.ts","../../node_modules/@types/connect-history-api-fallback/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/mime/Mime.d.ts","../../node_modules/@types/mime/index.d.ts","../../node_modules/@types/serve-static/index.d.ts","../../node_modules/@types/express/index.d.ts","../../node_modules/@types/html-minifier-terser/index.d.ts","../../node_modules/@types/http-proxy/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/react-is/index.d.ts","../../node_modules/@types/react-transition-group/Transition.d.ts","../../node_modules/@types/react-transition-group/CSSTransition.d.ts","../../node_modules/@types/react-transition-group/TransitionGroup.d.ts","../../node_modules/@types/react-transition-group/SwitchTransition.d.ts","../../node_modules/@types/react-transition-group/config.d.ts","../../node_modules/@types/react-transition-group/index.d.ts","../../node_modules/@types/retry/index.d.ts","../../node_modules/@types/scheduler/index.d.ts","../../node_modules/@types/semver/classes/semver.d.ts","../../node_modules/@types/semver/functions/parse.d.ts","../../node_modules/@types/semver/functions/valid.d.ts","../../node_modules/@types/semver/functions/clean.d.ts","../../node_modules/@types/semver/functions/inc.d.ts","../../node_modules/@types/semver/functions/diff.d.ts","../../node_modules/@types/semver/functions/major.d.ts","../../node_modules/@types/semver/functions/minor.d.ts","../../node_modules/@types/semver/functions/patch.d.ts","../../node_modules/@types/semver/functions/prerelease.d.ts","../../node_modules/@types/semver/functions/compare.d.ts","../../node_modules/@types/semver/functions/rcompare.d.ts","../../node_modules/@types/semver/functions/compare-loose.d.ts","../../node_modules/@types/semver/functions/compare-build.d.ts","../../node_modules/@types/semver/functions/sort.d.ts","../../node_modules/@types/semver/functions/rsort.d.ts","../../node_modules/@types/semver/functions/gt.d.ts","../../node_modules/@types/semver/functions/lt.d.ts","../../node_modules/@types/semver/functions/eq.d.ts","../../node_modules/@types/semver/functions/neq.d.ts","../../node_modules/@types/semver/functions/gte.d.ts","../../node_modules/@types/semver/functions/lte.d.ts","../../node_modules/@types/semver/functions/cmp.d.ts","../../node_modules/@types/semver/functions/coerce.d.ts","../../node_modules/@types/semver/classes/comparator.d.ts","../../node_modules/@types/semver/classes/range.d.ts","../../node_modules/@types/semver/functions/satisfies.d.ts","../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../node_modules/@types/semver/ranges/min-version.d.ts","../../node_modules/@types/semver/ranges/valid.d.ts","../../node_modules/@types/semver/ranges/outside.d.ts","../../node_modules/@types/semver/ranges/gtr.d.ts","../../node_modules/@types/semver/ranges/ltr.d.ts","../../node_modules/@types/semver/ranges/intersects.d.ts","../../node_modules/@types/semver/ranges/simplify.d.ts","../../node_modules/@types/semver/ranges/subset.d.ts","../../node_modules/@types/semver/internals/identifiers.d.ts","../../node_modules/@types/semver/index.d.ts","../../node_modules/@types/serve-index/index.d.ts","../../node_modules/@types/sockjs/index.d.ts","../../node_modules/@types/ws/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"ab38777e7a4119e926843813262d38c0c90e8c0f1fb4007b4963ece79342a2cf","signature":"bff32fbcbedfc2d65d9ef3f8dc1ce46f2de4fbbc53c0c21f79de7804e63344d4"},"5eb247204e0071898fd2336fafbb9766e75cbb204916eb45d815b9979ce6fa25","d681bdc2954f5e561d30407e0ab367d7444e274a0d802005a347389c824ee22d","03f1c2a95a0138349419d32b4c10d2bb81e1b34723e655616837e467aa425e3c","2d90decb740c9c25b45d35092763096e0d1e9f3b93930732e6864c553f4f116d","b030697e31bc3a17055c25245416b537f294473e7f0cbaadf1b6e925acf77c67","32e08aebc30bad470ec1a0986d1daeed66c30325865b223b7fdf0ed66e5c4631","8075834e3cd8c79bf1040c82259807d69136ddfb32975ec0ad2a152d9a5f8030","e6d5097caa2b801d56838703a2612caca6e4ad76c8068942810fee3625a622ac","a09e36d197874f408154c72a93ddfbdbb4dc3530aca7374fb8b42c91a48236dc","bbdfcd4707689f9bb25ceaac33fe6de75f519b1c6dc1b1653ad514416ddba013","f7a2cb36f1513c9b7c9deeee89c37b84ffa8aa6a5741fdcd9cd6e6bca2d601fc","5d340ad2bc6e635a639e1940ca656ad3860dc529f6c7f3d91eacafebcbe344b2","0213ef491d2af6180d582e5d38275e7ffd08ea70e8658b70e51f7cc2e8f9c20d","f6c7702c252e54a6ea3487d9ac261e3b5f047f4ad38093973368b9f88d32b922","2f2a8f38a620019ba17aca84641938f0aca2ddcc23d3472ab0987d13feebad9f","014859158bae57726918c748ae188cb65f5971abf510a0e80089644adcc145be","0f51af0572cac9d22dc9e2d787be08f563e7bc0d9d483426621348e13bdad619","3625d2b4c5103c6129ab6a81de4d70cb09e2dd9187d1f6308fd4c05361e12c0b","8f306fc2cd1eea02a2bae64a6b93581a820606982844f173a70cd8c8f4d17343","10ebbe35065a26711c59a28edf19c2c972c86599e2f8067f142d3df538dd0e0c","c789014bcd8fc97b0b2f0baf99bb9bd56b7caf9c7d0f89a1a26f93e63677c800","8ec05eb6d7095fee3bed62bf2e1bb13f9acfaf7090e8e909b467aec2ae3b875d","c8cdd7202b908fe6be3afe8623bc924dcef1c268632996daf965532611e79f01","b361c8c7908f138126bbe6b42b24f6a13af243c71ef236cf8ce9e09e8d5a7500","969fededea64a89c05a192812585e9823da3d89eaf04e3119c91c70342bc6abf","e7d1dd0a90e551c6b1a26d5a7bb61f56af6905c52ed2d6f705ca73ca262135db","0f63e1577f90f8641e13eb378f9d8e2b147bc38f0d3481c0eb91120832e4da2d","80b87a9acb21115b7c60490fd791feb98b7f19a1698eedc84df6cdd82e9028c6","6c7dde0e0c2be13924975a22ce7e599a0a0c0e31cfa6b2f0009be55e5929f944","d6a902fece8d75efc2aaf5b57fb13cf58772d4cb332f8f2f37b09dceafce940a","fc8d85ad0b12b426d6e3fe5e269dbb7a27c9a1c7d4631cff8013427c44c32f7a","c0385e189522465603c493ec2753f77933b6b2fbf7912b4f30516532ad9e2355","52a60499ee25c17befb17ce40f2901282acd8630932cb74a5a409ffd7d1cf4a1","ed5ca6fe91776ee5d2bbef4bb7dbab092bb174de0a4cb48e4d86cfabaa375a9e","a68242bbc7414830480da5264f71f27a9ebfb13111ed2e55b472e9c85b9aa55f","39e29be36a0693ae3d474c8c1352fc79d89fdd8b1e695d3dd9b92e49147ed74c","604ce8e3c3292129a91e2608f1975a75c4c9378f794eee1b989b7c19a1eeed1a","d233368a4b9a59bce4439e490980cef17e9db9836a184fd39500e5c76dae3120","c737e3fc34df82139f959eb93b08219bc386c7c88d1abe82cd9c14e46266d5d2","8d5274fc4535526a8a2ab195663cf378621f3f9525d32fd505ccc0692d33de20","c4da79abf98dc71ab379fd5af692a2b5fd655915c2da4ea5e47bd4d54d1f4f15","3c2bc6197809fdb448e8346ced11cc6f476b131676666ea58eed9587d9e0f203","d72bf1bf5de6c2f64af50ba4742c30ef82737da23da9131174ea702ba5fbada6","9eac469b0958436c8b7f109526d13dee8ba56b7bebf0c0aa7a04460d352641dc","e9754ea017ebaf1b9085af9a0278b10899f1c8dc6e015d947b1d77ce9e1ffb79","1e7a2c42982608346d60d171758cf4f1e67df82a2600a7596162a96e59cc7073","bcec16cf97bb7e439db8431ffe16736ae7ed5e947ab74d69b9f276dbd2719ac5","2808645b990069e5f8b5ff14c9f1e6077eb642583c3f7854012d60757f23c70e","42a81b77b8c1b28af63d2efea675f241d1c70e78315a4841ac7d3b19fdb9f6b0","55e50ea441dec92ee2ade4c805c2c01af44c9157644e21fa82393c85177099d0","a664b2faff57ccc33e4500ae1a51e9f18b3aa934d4948842549f90824b07be20","fcd226903b053fb14bab30c8581345998e351bb13ee080e489787f98bae4fcff","800cf249f0c9e6a70ac9d41f3baeec5507465bc4c15808ecd0fb205c8770952b","963b57ea17fd38dd079d2415fee322c1e985a93ff74496e0e5f7f7e745511dcb","fa112e4c4772e1ae041fab48ee4bc7a7f3d48874ecc89ee50688fa9fb7639189","4bd3315111a3e5da8b4e4bb6eae0004ff2c0dca065724813379b95c187e071a4","b32f6b615ff9c1476619cc6e48afb42e75d872d968dd4390cda1af34a9048b73","8b577b67db276e14214292bcbeb1f66d76f98c86372dabf87e7729abe2f615af","2ffdf100a5fe7b90f9ccd37fd090d908f63e13ddacbe56438a9c59c61e494ecd","05d27b26e5f7da045e23bedd435220c4df3cf7b63bbc9e709a3e3adc24fa5120","915a03f412312f6faf93431e151a9f0709e1e460f7d1ead0db66a2d592201767","f627ded5199f31e189d6368f17ac561d22bb37d4e0a0c30943e279fcf75bd0b6","a47b652f6dca5f4acced2caddefba281f8133d5d19d517143cf1f5aa6d2ad475","44cb69df71415c13846d30faeef445a6ccc7fc1c8c9c7c94e253cd0e60ec2b90","74ed5a07f934f1d412b238bbac4eb77a933d946b6586af67c4a2ac3225b29541","3edc1ec4c12ee0daeab68101174cf35cfebb1759ed1acf0ca77fa37388450d0e","d4551be00948f205f7308e09464d715e062deed201dc3398db97d2db12247bbc",{"version":"6e004d417a3092ccc50ed66bae4be1fb1fb74eb4e994e67dbe025522e69a58a3","signature":"552f091cc0ae8a38723b6aadfaf6d6a410afdb7dc62a61f428743704b8e192ea"},{"version":"ee329dae2bc6f1bb3e03262fd7b07d611707a251acc7a4056709b41d3baa9ffd","signature":"b14542de4012aa81ce2f4b6bbf3a86e4bee28596bcbedaad7adc3d16005db03f"},{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"1c29793071152b207c01ea1954e343be9a44d85234447b2b236acae9e709a383","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"ef8a481f9f2205fcc287eef2b4e461d2fc16bc8a0e49a844681f2f742d69747e","affectsGlobalScope":true},{"version":"ad17d183847f830cd30dea3894719ce0dd906f4cced82f30f9fe1673183582e5","signature":"96fecb4c5221958cfe46041f0c0e6a82958a92400d6085d22692f779f7898eff"},{"version":"ccc8c3ff1964f6511792569423a981d5019880e2179a24c9064142e657ac150b","signature":"0d595617c3c6a618fe888370bb5c318eea595af44182de115920b833217d102b"},{"version":"6f6170243ed0f264d68d2683ed94443d67f33d32b8f61d225055047b12f23637","signature":"46b1234c3c27e5b8899b0e03e77e2fcbf2307403549d2f3998d2b67de9e1e64c"},{"version":"baa5453d4800f64afa519feb31bcde86fde234bf61f90259de226817e598bbbe","signature":"d5568b21199e83c4da5af9ce44f8bc4942dba121c041bb93de4121d1b2b7ebf5"},{"version":"a26f18a29200ce1235703263e4858f495e612d5f3725c2854a6d77cae52ef8ce","signature":"0939532e708666035a93b9f0f5f4fa118588800cc9e93580e5bc22f8fd51297e"},{"version":"e2306e20a62fd5459b0faddb598090e61d39cc390e8dab0c4b6961e2764c33e2","signature":"34fc2df8dbbdfd51cd1ac28fbfa8532d1bd4930d352a7f516411bd60fbbfb6e2"},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"bb65c6267c5d6676be61acbf6604cf0a4555ac4b505df58ac15c831fcbff4e3e","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","dab86d9604fe40854ef3c0a6f9e8948873dc3509213418e5e457f410fd11200f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d076fede3cb042e7b13fc29442aaa03a57806bc51e2b26a67a01fbc66a7c0c12","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","223c37f62ce09a3d99e77498acdee7b2705a4ae14552fbdb4093600cd9164f3f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"4c50342e1b65d3bee2ed4ab18f84842d5724ad11083bd666d8705dc7a6079d80","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"8dbe725f8d237e70310977afcfa011629804d101ebaa0266cafda6b61ad72236","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","d78e5898c8de5e0f934eee83f680262de005caa268d137101b833fd932f95e07","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"56cbe80e6c42d7e6e66b6f048add8b01c663797b843a074d9f19c4a3d63a269a",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","3adc8ac088388fd10b0e9cd3fa08abbebed9172577807394a241466ccb98f411","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","ee65fe452abe1309389c5f50710f24114e08a302d40708101c4aa950a2a7d044","c1d5cc0286eef54f6246a972ec1720efbba6b7b0a53a303e1f2067ca229ecd16","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042","06c2fc0bf929858d3ee5fb8c14f0a39b48d91bb8161b6480d833f787df761672","30688eab034d1aa3bbe4d8f2c7f462ddaec9f30f1a38a306a4728a9a06a58b11","e03334588c63840b7054accd0b90f29c5890db6a6555ac0869a78a23297f1396","c3052485f32a96bfde75a2976c1238995522584ba464f04ff16a8a40af5e50d1","c220410b8e956fa157ce4e5e6ac871f0f433aa120c334d906ff1f5e2c7369e95","960a68ced7820108787135bdae5265d2cc4b511b7dcfd5b8f213432a8483daf1","5e8db4872785292074b394d821ae2fc10e4f8edc597776368aebbe8aefb24422","199f9ead0daf25ae4c5632e3d1f42570af59685294a38123eef457407e13f365","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","77c1d91a129ba60b8c405f9f539e42df834afb174fe0785f89d92a2c7c16b77a","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","c649ea79205c029a02272ef55b7ab14ada0903db26144d2205021f24727ac7a3","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","6aee496bf0ecfbf6731aa8cca32f4b6e92cdc0a444911a7d88410408a45ecc5d","acebfe99678cf7cddcddc3435222cf132052b1226e902daac9fbb495c321a9b5","82b1f9a6eefef7386aebe22ac49f23b806421e82dbf35c6e5b7132d79e4165da","b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6"],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":99,"noImplicitAny":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"suppressImplicitAnyIndexErrors":true,"target":2},"fileIdsList":[[174],[113,114,115,174],[113,114,115,116,121,125,174],[121,126,174],[113,124,174],[113,174],[115,122,123,126,174],[47,115,174],[121,122,126,174],[59,68,71,174],[48,60,61,62,63,64,65,174],[59,174],[59,66,174],[67,174],[75,174],[59,68,69,174],[69,70,174],[77,174],[49,66,174],[49,50,51,52,53,54,55,56,57,58,174],[48,59,61,62,63,64,68,69,72,74,76,174],[73,174],[78,85,92,102,106,174],[78,102,106,174],[79,80,81,82,83,84,174],[78,86,102,103,174],[86,104,105,174],[85,102,174],[78,113,174],[89,113,174],[90,174],[89,91,174],[102,174],[87,88,174],[112,174],[78,85,174],[78,92,102,174],[92,95,102,113,174],[93,94,96,97,98,99,100,101,174],[85,174],[78,174],[78,102,113,174],[78,80,81,86,102,103,104,107,108,109,110,111,174],[147,174,181,182],[138,174,181],[173,174,181,187],[147,174,181],[174,190,192],[174,189,190,191],[144,147,174,181,185,186],[174,183,186,187,196],[144,147,149,152,162,173,174,181],[174,195],[174,194],[128,174],[131,174],[132,137,165,174],[133,144,145,152,162,173,174],[133,134,144,152,174],[135,174],[136,137,145,153,174],[137,162,170,174],[138,140,144,152,174],[139,174],[140,141,174],[144,174],[142,144,174],[144,145,146,162,173,174],[144,145,146,159,162,165,174],[174,178],[140,147,152,162,173,174],[144,145,147,148,152,162,170,173,174],[147,149,162,170,173,174],[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180],[144,150,174],[151,173,174],[140,144,152,162,174],[153,174],[154,174],[131,155,174],[156,172,174,178],[157,174],[158,174],[144,159,160,174],[159,161,174,176],[132,144,162,163,164,165,174],[132,162,164,174],[162,163,174],[165,174],[166,174],[144,168,169,174],[168,169,174],[137,152,162,170,174],[171,174],[152,172,174],[132,147,158,173,174],[137,174],[162,174,175],[174,176],[174,177],[132,137,144,146,155,162,173,174,176,178],[162,174,179],[121,174],[121,174,207],[174,207,208,209,210,211],[117,118,119,120,174],[174,215,254],[174,215,239,254],[174,254],[174,215],[174,215,240,254],[174,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253],[174,240,254],[145,174,197],[147,174,181,195],[144,147,149,162,170,173,174,179,181],[113,114,115],[113,115,121,125],[121],[113,124],[113],[115,122,123,126],[115]],"referencedMap":[[47,1],[116,2],[126,3],[122,4],[125,5],[115,6],[124,7],[127,8],[123,9],[72,10],[48,1],[61,1],[62,1],[65,1],[66,11],[60,12],[63,1],[64,1],[67,13],[68,14],[75,1],[76,15],[70,16],[69,12],[71,17],[78,18],[55,1],[50,19],[57,1],[53,1],[51,12],[58,1],[54,1],[59,20],[49,1],[52,1],[56,1],[77,21],[73,12],[74,22],[107,23],[109,24],[110,24],[84,1],[81,1],[85,25],[79,1],[83,1],[82,1],[80,1],[104,26],[106,27],[105,28],[86,29],[90,30],[91,31],[92,32],[87,6],[88,33],[89,34],[113,35],[99,36],[93,37],[96,38],[102,39],[94,40],[103,41],[98,6],[100,41],[101,1],[97,42],[112,43],[108,6],[111,24],[114,41],[183,44],[184,45],[188,46],[182,47],[193,48],[189,1],[192,49],[190,1],[187,50],[197,51],[198,1],[199,52],[191,1],[200,1],[194,53],[195,54],[201,1],[202,1],[128,55],[129,55],[131,56],[132,57],[133,58],[134,59],[135,60],[136,61],[137,62],[138,63],[139,64],[140,65],[141,65],[143,66],[142,67],[144,66],[145,68],[146,69],[130,70],[180,1],[147,71],[148,72],[149,73],[181,74],[150,75],[151,76],[152,77],[153,78],[154,79],[155,80],[156,81],[157,82],[158,83],[159,84],[160,84],[161,85],[162,86],[164,87],[163,88],[165,89],[166,90],[167,1],[168,91],[169,92],[170,93],[171,94],[172,95],[173,96],[174,97],[175,98],[176,99],[177,100],[178,101],[179,102],[203,1],[204,1],[119,1],[186,1],[185,1],[205,103],[206,103],[208,104],[210,103],[207,103],[209,104],[211,1],[212,105],[117,1],[121,106],[213,1],[214,1],[120,1],[239,107],[240,108],[215,109],[218,109],[237,107],[238,107],[228,107],[227,110],[225,107],[220,107],[233,107],[231,107],[235,107],[219,107],[232,107],[236,107],[221,107],[222,107],[234,107],[216,107],[223,107],[224,107],[226,107],[230,107],[241,111],[229,107],[217,107],[254,112],[253,1],[248,111],[250,113],[249,111],[242,111],[243,111],[245,111],[247,111],[251,113],[252,113],[244,113],[246,113],[255,114],[196,115],[256,47],[257,116],[95,1],[118,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[37,1],[34,1],[35,1],[36,1],[38,1],[8,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[2,1],[1,1],[46,1],[12,1],[11,1]],"exportedModulesMap":[[116,117],[126,118],[122,119],[125,120],[115,121],[124,122],[127,123],[123,119],[72,10],[48,1],[61,1],[62,1],[65,1],[66,11],[60,12],[63,1],[64,1],[67,13],[68,14],[75,1],[76,15],[70,16],[69,12],[71,17],[78,18],[55,1],[50,19],[57,1],[53,1],[51,12],[58,1],[54,1],[59,20],[49,1],[52,1],[56,1],[77,21],[73,12],[74,22],[107,23],[109,24],[110,24],[84,1],[81,1],[85,25],[79,1],[83,1],[82,1],[80,1],[104,26],[106,27],[105,28],[86,29],[90,30],[91,31],[92,32],[87,6],[88,33],[89,34],[113,35],[99,36],[93,37],[96,38],[102,39],[94,40],[103,41],[98,6],[100,41],[101,1],[97,42],[112,43],[108,6],[111,24],[114,41],[183,44],[184,45],[188,46],[182,47],[193,48],[189,1],[192,49],[190,1],[187,50],[197,51],[198,1],[199,52],[191,1],[200,1],[194,53],[195,54],[201,1],[202,1],[128,55],[129,55],[131,56],[132,57],[133,58],[134,59],[135,60],[136,61],[137,62],[138,63],[139,64],[140,65],[141,65],[143,66],[142,67],[144,66],[145,68],[146,69],[130,70],[180,1],[147,71],[148,72],[149,73],[181,74],[150,75],[151,76],[152,77],[153,78],[154,79],[155,80],[156,81],[157,82],[158,83],[159,84],[160,84],[161,85],[162,86],[164,87],[163,88],[165,89],[166,90],[167,1],[168,91],[169,92],[170,93],[171,94],[172,95],[173,96],[174,97],[175,98],[176,99],[177,100],[178,101],[179,102],[203,1],[204,1],[119,1],[186,1],[185,1],[205,103],[206,103],[208,104],[210,103],[207,103],[209,104],[211,1],[212,105],[117,1],[121,106],[213,1],[214,1],[120,1],[239,107],[240,108],[215,109],[218,109],[237,107],[238,107],[228,107],[227,110],[225,107],[220,107],[233,107],[231,107],[235,107],[219,107],[232,107],[236,107],[221,107],[222,107],[234,107],[216,107],[223,107],[224,107],[226,107],[230,107],[241,111],[229,107],[217,107],[254,112],[253,1],[248,111],[250,113],[249,111],[242,111],[243,111],[245,111],[247,111],[251,113],[252,113],[244,113],[246,113],[255,114],[196,115],[256,47],[257,116],[95,1],[118,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[37,1],[34,1],[35,1],[36,1],[38,1],[8,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[2,1],[1,1],[46,1],[12,1],[11,1]],"semanticDiagnosticsPerFile":[47,116,126,122,125,115,124,127,123,72,48,61,62,65,66,60,63,64,67,68,75,76,70,69,71,78,55,50,57,53,51,58,54,59,49,52,56,77,73,74,107,109,110,84,81,85,79,83,82,80,104,106,105,86,90,91,92,87,88,89,113,99,93,96,102,94,103,98,100,101,97,112,108,111,114,183,184,188,182,193,189,192,190,187,197,198,199,191,200,194,195,201,202,128,129,131,132,133,134,135,136,137,138,139,140,141,143,142,144,145,146,130,180,147,148,149,181,150,151,152,153,154,155,156,157,158,159,160,161,162,164,163,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,203,204,119,186,185,205,206,208,210,207,209,211,212,117,121,213,214,120,239,240,215,218,237,238,228,227,225,220,233,231,235,219,232,236,221,222,234,216,223,224,226,230,241,229,217,254,253,248,250,249,242,243,245,247,251,252,244,246,255,196,256,257,95,118,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,37,34,35,36,38,8,39,44,45,40,41,42,43,2,1,46,12,11],"latestChangedDtsFile":"./src/reducer.d.ts"},"version":"4.9.4"}
|
package/src/actions.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
3
|
-
*
|
|
4
|
-
* WSO2 Inc. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* AuthContext reducer actions enum.
|
|
21
|
-
*/
|
|
22
|
-
export enum AuthContextReducerActionTypes {
|
|
23
|
-
SET_SIGN_IN = "SET_SIGN_IN",
|
|
24
|
-
SET_SIGN_OUT = "SET_SIGN_OUT",
|
|
25
|
-
SET_PROFILE_INFO = "SET_PROFILE_INFO"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Set Sign In State reducer action.
|
|
30
|
-
*/
|
|
31
|
-
export const setSignIn = (response: any) => ({
|
|
32
|
-
payload: response,
|
|
33
|
-
type: AuthContextReducerActionTypes.SET_SIGN_IN
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Set Sign Out State reducer action.
|
|
38
|
-
*/
|
|
39
|
-
export const setSignOut = () => ({
|
|
40
|
-
type: AuthContextReducerActionTypes.SET_SIGN_OUT
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Set Profile Info reducer action.
|
|
45
|
-
*
|
|
46
|
-
* @param {any} details - Profile details
|
|
47
|
-
*/
|
|
48
|
-
export const setProfileInfo = (details: any) => ({
|
|
49
|
-
payload: details,
|
|
50
|
-
type: AuthContextReducerActionTypes.SET_PROFILE_INFO
|
|
51
|
-
});
|
package/src/api.ts
DELETED
|
@@ -1,466 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
3
|
-
*
|
|
4
|
-
* WSO2 Inc. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
AsgardeoSPAClient,
|
|
21
|
-
AuthClientConfig,
|
|
22
|
-
BasicUserInfo,
|
|
23
|
-
Config,
|
|
24
|
-
DecodedIDTokenPayload,
|
|
25
|
-
FetchResponse,
|
|
26
|
-
Hooks,
|
|
27
|
-
HttpClientInstance,
|
|
28
|
-
HttpRequestConfig,
|
|
29
|
-
HttpResponse,
|
|
30
|
-
OIDCEndpoints,
|
|
31
|
-
SignInConfig
|
|
32
|
-
} from "@asgardeo/auth-spa";
|
|
33
|
-
import { SPACustomGrantConfig } from "@asgardeo/auth-spa/src/models/request-custom-grant";
|
|
34
|
-
import { AuthStateInterface } from "./models";
|
|
35
|
-
|
|
36
|
-
class AuthAPI {
|
|
37
|
-
static DEFAULT_STATE: AuthStateInterface;
|
|
38
|
-
|
|
39
|
-
private _authState = AuthAPI.DEFAULT_STATE;
|
|
40
|
-
private _client: AsgardeoSPAClient;
|
|
41
|
-
|
|
42
|
-
constructor(spaClient?: AsgardeoSPAClient) {
|
|
43
|
-
this._client = spaClient ?? AsgardeoSPAClient.getInstance();
|
|
44
|
-
|
|
45
|
-
this.getState = this.getState.bind(this);
|
|
46
|
-
this.init = this.init.bind(this);
|
|
47
|
-
this.signIn = this.signIn.bind(this);
|
|
48
|
-
this.signOut = this.signOut.bind(this);
|
|
49
|
-
this.updateState = this.updateState.bind(this);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Method to return Auth Client instance authentication state.
|
|
54
|
-
*
|
|
55
|
-
* @return {AuthStateInterface} Authentication State.
|
|
56
|
-
*/
|
|
57
|
-
public getState(): AuthStateInterface {
|
|
58
|
-
return this._authState;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Method to initialize the AuthClient instance.
|
|
63
|
-
*
|
|
64
|
-
* @param {Config} config - `dispatch` function from React Auth Context.
|
|
65
|
-
*/
|
|
66
|
-
public init(config: AuthClientConfig<Config>): Promise<boolean> {
|
|
67
|
-
return this._client.initialize(config);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Method to handle user Sign In requests.
|
|
72
|
-
*
|
|
73
|
-
* @param {any} dispatch - `dispatch` function from React Auth Context.
|
|
74
|
-
* @param {AuthStateInterface} state - Current authentication state in React Auth Context.
|
|
75
|
-
* @param {any} callback - Action to trigger on successful sign in.
|
|
76
|
-
*/
|
|
77
|
-
public async signIn(
|
|
78
|
-
dispatch: (state: AuthStateInterface) => void,
|
|
79
|
-
state: AuthStateInterface,
|
|
80
|
-
config: SignInConfig,
|
|
81
|
-
authorizationCode: string,
|
|
82
|
-
sessionState: string,
|
|
83
|
-
authState?: string,
|
|
84
|
-
callback?: (response: BasicUserInfo) => void,
|
|
85
|
-
tokenRequestConfig?: {
|
|
86
|
-
params: Record<string, unknown>
|
|
87
|
-
}
|
|
88
|
-
): Promise<BasicUserInfo> {
|
|
89
|
-
return this._client
|
|
90
|
-
.signIn(config, authorizationCode, sessionState, authState, tokenRequestConfig)
|
|
91
|
-
.then(async (response: BasicUserInfo) => {
|
|
92
|
-
if (!response) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (await this._client.isAuthenticated()) {
|
|
97
|
-
const stateToUpdate ={
|
|
98
|
-
allowedScopes: response.allowedScopes,
|
|
99
|
-
displayName: response.displayName,
|
|
100
|
-
email: response.email,
|
|
101
|
-
isAuthenticated: true,
|
|
102
|
-
isLoading: false,
|
|
103
|
-
isSigningOut: false,
|
|
104
|
-
sub: response.sub,
|
|
105
|
-
username: response.username
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
this.updateState(stateToUpdate);
|
|
109
|
-
|
|
110
|
-
dispatch({ ...state, ...stateToUpdate });
|
|
111
|
-
|
|
112
|
-
if (callback) {
|
|
113
|
-
callback(response);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return response;
|
|
118
|
-
})
|
|
119
|
-
.catch((error) => {
|
|
120
|
-
return Promise.reject(error);
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Method to handle user Sign Out requests.
|
|
126
|
-
*
|
|
127
|
-
* @param {any} dispatch - `dispatch` function from React Auth Context.
|
|
128
|
-
* @param {AuthStateInterface} state - Current authentication state in React Auth Context.
|
|
129
|
-
* @param {any} callback - Action to trigger on successful sign out.
|
|
130
|
-
*/
|
|
131
|
-
public signOut(
|
|
132
|
-
dispatch: (state: AuthStateInterface) => void,
|
|
133
|
-
state: AuthStateInterface,
|
|
134
|
-
callback?: (response?: boolean) => void
|
|
135
|
-
): Promise<boolean> {
|
|
136
|
-
return this._client
|
|
137
|
-
.signOut()
|
|
138
|
-
.then((response) => {
|
|
139
|
-
if (callback) {
|
|
140
|
-
callback(response);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return response;
|
|
144
|
-
})
|
|
145
|
-
.catch((error) => {
|
|
146
|
-
return Promise.reject(error);
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Method to update Auth Client instance authentication state.
|
|
152
|
-
*
|
|
153
|
-
* @param {AuthStateInterface} state - State values to update in authentication state.
|
|
154
|
-
*/
|
|
155
|
-
public updateState(state: AuthStateInterface): void {
|
|
156
|
-
this._authState = { ...this._authState, ...state };
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* This method returns a Promise that resolves with the basic user information obtained from the ID token.
|
|
161
|
-
*
|
|
162
|
-
* @return {Promise<BasicUserInfo>} - A promise that resolves with the user information.
|
|
163
|
-
*/
|
|
164
|
-
public async getBasicUserInfo(): Promise<BasicUserInfo> {
|
|
165
|
-
return this._client.getBasicUserInfo();
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* This method sends an API request to a protected endpoint.
|
|
170
|
-
* The access token is automatically attached to the header of the request.
|
|
171
|
-
* This is the only way by which protected endpoints can be accessed
|
|
172
|
-
* when the web worker is used to store session information.
|
|
173
|
-
*
|
|
174
|
-
* @param {HttpRequestConfig} config - The config object containing attributes necessary to send a request.
|
|
175
|
-
*
|
|
176
|
-
* @return {Promise<FetchResponse>} - Returns a Promise that resolves with the response to the request.
|
|
177
|
-
*/
|
|
178
|
-
public async httpRequest(config: HttpRequestConfig): Promise<HttpResponse<any>> {
|
|
179
|
-
return this._client.httpRequest(config);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* This method sends multiple API requests to a protected endpoint.
|
|
184
|
-
* The access token is automatically attached to the header of the request.
|
|
185
|
-
* This is the only way by which multiple requests can be sent to protected endpoints
|
|
186
|
-
* when the web worker is used to store session information.
|
|
187
|
-
*
|
|
188
|
-
* @param {HttpRequestConfig[]} config - The config object containing attributes necessary to send a request.
|
|
189
|
-
*
|
|
190
|
-
* @return {Promise<FetchResponse[]>} - Returns a Promise that resolves with the responses to the requests.
|
|
191
|
-
*/
|
|
192
|
-
public async httpRequestAll(configs: HttpRequestConfig[]): Promise<HttpResponse<any>[]> {
|
|
193
|
-
return this._client.httpRequestAll(configs);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* This method allows you to send a request with a custom grant.
|
|
198
|
-
*
|
|
199
|
-
* @param {CustomGrantRequestParams} config - The request parameters.
|
|
200
|
-
*
|
|
201
|
-
* @return {Promise<FetchResponse<any> | SignInResponse>} - A Promise that resolves with
|
|
202
|
-
* the value returned by the custom grant request.
|
|
203
|
-
*/
|
|
204
|
-
public requestCustomGrant(
|
|
205
|
-
config: SPACustomGrantConfig,
|
|
206
|
-
callback: (response: BasicUserInfo | FetchResponse<any>) => void,
|
|
207
|
-
dispatch: (state: AuthStateInterface) => void
|
|
208
|
-
): Promise<BasicUserInfo | FetchResponse<any>> {
|
|
209
|
-
return this._client
|
|
210
|
-
.requestCustomGrant(config)
|
|
211
|
-
.then((response: BasicUserInfo | FetchResponse<any>) => {
|
|
212
|
-
if (!response) {
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
if (config.returnsSession) {
|
|
217
|
-
this.updateState(
|
|
218
|
-
{
|
|
219
|
-
...this.getState(),
|
|
220
|
-
...(response as BasicUserInfo), isAuthenticated: true, isLoading: false
|
|
221
|
-
}
|
|
222
|
-
);
|
|
223
|
-
|
|
224
|
-
dispatch({ ...(response as BasicUserInfo), isAuthenticated: true, isLoading: false });
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
callback && callback(response);
|
|
228
|
-
|
|
229
|
-
return response;
|
|
230
|
-
})
|
|
231
|
-
.catch((error) => {
|
|
232
|
-
return Promise.reject(error);
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* This method ends a user session. The access token is revoked and the session information is destroyed.
|
|
238
|
-
*
|
|
239
|
-
* @return {Promise<boolean>} - A promise that resolves with `true` if the process is successful.
|
|
240
|
-
*/
|
|
241
|
-
public async revokeAccessToken(dispatch: (state: AuthStateInterface) => void): Promise<boolean> {
|
|
242
|
-
return this._client
|
|
243
|
-
.revokeAccessToken()
|
|
244
|
-
.then(() => {
|
|
245
|
-
this.updateState({ ...AuthAPI.DEFAULT_STATE, isLoading: false });
|
|
246
|
-
dispatch(AuthAPI.DEFAULT_STATE);
|
|
247
|
-
return true;
|
|
248
|
-
})
|
|
249
|
-
.catch((error) => {
|
|
250
|
-
return Promise.reject(error);
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* This method returns a Promise that resolves with an object containing the service endpoints.
|
|
256
|
-
*
|
|
257
|
-
* @return {Promise<ServiceResourcesType} - A Promise that resolves with an object containing the service endpoints.
|
|
258
|
-
*/
|
|
259
|
-
public async getOIDCServiceEndpoints(): Promise<OIDCEndpoints> {
|
|
260
|
-
return this._client.getOIDCServiceEndpoints();
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* This methods returns the Axios http client.
|
|
265
|
-
*
|
|
266
|
-
* @return {HttpClientInstance} - The Axios HTTP client.
|
|
267
|
-
*/
|
|
268
|
-
public async getHttpClient(): Promise<HttpClientInstance> {
|
|
269
|
-
return this._client.getHttpClient();
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* This method decodes the payload of the id token and returns it.
|
|
274
|
-
*
|
|
275
|
-
* @return {Promise<DecodedIDTokenPayloadInterface>} - A Promise that resolves with
|
|
276
|
-
* the decoded payload of the id token.
|
|
277
|
-
*/
|
|
278
|
-
public async getDecodedIDToken(): Promise<DecodedIDTokenPayload> {
|
|
279
|
-
return this._client.getDecodedIDToken();
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* This method decodes the payload of the idp id token and returns it.
|
|
284
|
-
*
|
|
285
|
-
* @return {Promise<DecodedIDTokenPayloadInterface>} - A Promise that resolves with
|
|
286
|
-
* the decoded payload of the idp id token.
|
|
287
|
-
*/
|
|
288
|
-
public async getDecodedIDPIDToken(): Promise<DecodedIDTokenPayload> {
|
|
289
|
-
return this._client.getDecodedIDToken();
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* This method returns the ID token.
|
|
294
|
-
*
|
|
295
|
-
* @return {Promise<string>} - A Promise that resolves with the id token.
|
|
296
|
-
*/
|
|
297
|
-
public async getIDToken(): Promise<string> {
|
|
298
|
-
return this._client.getIDToken();
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* This method return a Promise that resolves with the access token.
|
|
303
|
-
*
|
|
304
|
-
* **This method will not return the access token if the storage type is set to `webWorker`.**
|
|
305
|
-
*
|
|
306
|
-
* @return {Promise<string>} - A Promise that resolves with the access token.
|
|
307
|
-
*/
|
|
308
|
-
public async getAccessToken(): Promise<string> {
|
|
309
|
-
return this._client.getAccessToken();
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* This method return a Promise that resolves with the idp access token.
|
|
314
|
-
*
|
|
315
|
-
* **This method will not return the idp access token if the storage type is set to `webWorker`.**
|
|
316
|
-
* **This can be used to access the IDP access token when custom auth grant functionalities are used**
|
|
317
|
-
*
|
|
318
|
-
* @return {Promise<string>} - A Promise that resolves with the idp access token.
|
|
319
|
-
*/
|
|
320
|
-
public async getIDPAccessToken(): Promise<string> {
|
|
321
|
-
return this._client.getIDPAccessToken();
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* This method refreshes the access token.
|
|
326
|
-
*
|
|
327
|
-
* @return {TokenResponseInterface} - A Promise that resolves with an object containing
|
|
328
|
-
* information about the refreshed access token.
|
|
329
|
-
*/
|
|
330
|
-
public async refreshAccessToken(): Promise<BasicUserInfo> {
|
|
331
|
-
return this._client.refreshAccessToken();
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* This method specifies if the user is authenticated or not.
|
|
336
|
-
*
|
|
337
|
-
* @return {Promise<boolean>} - A Promise that resolves with `true` if teh user is authenticated.
|
|
338
|
-
*/
|
|
339
|
-
public async isAuthenticated(): Promise<boolean> {
|
|
340
|
-
return this._client.isAuthenticated();
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* This method specifies if the session is active or not.
|
|
345
|
-
*
|
|
346
|
-
* @return {Promise<boolean>} - A Promise that resolves with `true` if there is an active session.
|
|
347
|
-
*/
|
|
348
|
-
public async isSessionActive(): Promise<boolean> {
|
|
349
|
-
return this._client.isSessionActive();
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* This method enables callback functions attached to the http client.
|
|
354
|
-
*
|
|
355
|
-
* @return {Promise<boolean>} - A promise that resolves with True.
|
|
356
|
-
*
|
|
357
|
-
*/
|
|
358
|
-
public async enableHttpHandler(): Promise<boolean> {
|
|
359
|
-
return this._client.enableHttpHandler();
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* This method disables callback functions attached to the http client.
|
|
364
|
-
*
|
|
365
|
-
* @return {Promise<boolean>} - A promise that resolves with True.
|
|
366
|
-
*/
|
|
367
|
-
public async disableHttpHandler(): Promise<boolean> {
|
|
368
|
-
return this._client.disableHttpHandler();
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* This method updates the configuration that was passed into the constructor when instantiating this class.
|
|
373
|
-
*
|
|
374
|
-
* @param {Partial<AuthClientConfig<T>>} config - A config object to update the SDK configurations with.
|
|
375
|
-
*/
|
|
376
|
-
public async updateConfig(config: Partial<AuthClientConfig<Config>>): Promise<void> {
|
|
377
|
-
return this._client.updateConfig(config);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* This method attaches a callback function to an event hook that fires the callback when the event happens.
|
|
382
|
-
*
|
|
383
|
-
* @param {Hooks.CustomGrant} hook - The name of the hook.
|
|
384
|
-
* @param {(response?: any) => void} callback - The callback function.
|
|
385
|
-
* @param {string} id (optional) - The id of the hook. This is used when multiple custom grants are used.
|
|
386
|
-
*
|
|
387
|
-
*/
|
|
388
|
-
public on(hook: Hooks.CustomGrant, callback: (response?: any) => void, id: string): Promise<void>;
|
|
389
|
-
public on(
|
|
390
|
-
hook: Exclude<Hooks, Hooks.CustomGrant>,
|
|
391
|
-
callback: (response?: any) => void
|
|
392
|
-
): Promise<void>;
|
|
393
|
-
public on(hook: Hooks, callback: (response?: any) => void, id?: string): Promise<void> {
|
|
394
|
-
if (hook === Hooks.CustomGrant) {
|
|
395
|
-
return this._client.on(hook, callback, id);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
return this._client.on(hook, callback);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* This method allows you to sign in silently.
|
|
403
|
-
* First, this method sends a prompt none request to see if there is an active user session in the identity server.
|
|
404
|
-
* If there is one, then it requests the access token and stores it. Else, it returns false.
|
|
405
|
-
*
|
|
406
|
-
* @return {Promise<BasicUserInfo | boolean>} - A Promise that resolves with the user information after signing in
|
|
407
|
-
* or with `false` if the user is not signed in.
|
|
408
|
-
*
|
|
409
|
-
* @example
|
|
410
|
-
*```
|
|
411
|
-
* client.trySignInSilently()
|
|
412
|
-
*```
|
|
413
|
-
*/
|
|
414
|
-
public async trySignInSilently(
|
|
415
|
-
state: AuthStateInterface,
|
|
416
|
-
dispatch: (state: AuthStateInterface) => void,
|
|
417
|
-
additionalParams?: Record<string, string | boolean>,
|
|
418
|
-
tokenRequestConfig?: { params: Record<string, unknown> }
|
|
419
|
-
): Promise<BasicUserInfo | boolean | undefined> {
|
|
420
|
-
return this._client
|
|
421
|
-
.trySignInSilently(additionalParams, tokenRequestConfig)
|
|
422
|
-
.then(async (response: BasicUserInfo | boolean) => {
|
|
423
|
-
if (!response) {
|
|
424
|
-
this.updateState({ ...this.getState(), isLoading: false });
|
|
425
|
-
dispatch({ ...state, isLoading: false });
|
|
426
|
-
|
|
427
|
-
return false;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
if (await this._client.isAuthenticated()) {
|
|
431
|
-
const basicUserInfo = response as BasicUserInfo;
|
|
432
|
-
const stateToUpdate = {
|
|
433
|
-
allowedScopes: basicUserInfo.allowedScopes,
|
|
434
|
-
displayName: basicUserInfo.displayName,
|
|
435
|
-
email: basicUserInfo.email,
|
|
436
|
-
isAuthenticated: true,
|
|
437
|
-
isLoading: false,
|
|
438
|
-
isSigningOut: false,
|
|
439
|
-
sub: basicUserInfo.sub,
|
|
440
|
-
username: basicUserInfo.username
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
this.updateState(stateToUpdate);
|
|
444
|
-
|
|
445
|
-
dispatch({ ...state, ...stateToUpdate });
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
return response;
|
|
449
|
-
})
|
|
450
|
-
.catch((error) => {
|
|
451
|
-
return Promise.reject(error);
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
AuthAPI.DEFAULT_STATE = {
|
|
457
|
-
allowedScopes: "",
|
|
458
|
-
displayName: "",
|
|
459
|
-
email: "",
|
|
460
|
-
isAuthenticated: false,
|
|
461
|
-
isLoading: true,
|
|
462
|
-
sub: "",
|
|
463
|
-
username: ""
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export default AuthAPI;
|