@axa-fr/react-oidc 6.5.7 → 6.5.8
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/dist/FetchToken.js +39 -104
- package/dist/FetchToken.js.map +1 -1
- package/dist/OidcProvider.js +76 -110
- package/dist/OidcProvider.js.map +1 -1
- package/dist/OidcSecure.js +11 -60
- package/dist/OidcSecure.js.map +1 -1
- package/dist/ReactOidc.js +56 -74
- package/dist/ReactOidc.js.map +1 -1
- package/dist/User.js +13 -32
- package/dist/User.js.map +1 -1
- package/dist/core/default-component/AuthenticateError.component.js +4 -29
- package/dist/core/default-component/AuthenticateError.component.js.map +1 -1
- package/dist/core/default-component/Authenticating.component.js +4 -29
- package/dist/core/default-component/Authenticating.component.js.map +1 -1
- package/dist/core/default-component/Callback.component.js +29 -99
- package/dist/core/default-component/Callback.component.js.map +1 -1
- package/dist/core/default-component/Loading.component.js +3 -28
- package/dist/core/default-component/Loading.component.js.map +1 -1
- package/dist/core/default-component/ServiceWorkerNotSupported.component.js +4 -29
- package/dist/core/default-component/ServiceWorkerNotSupported.component.js.map +1 -1
- package/dist/core/default-component/SessionLost.component.js +6 -13
- package/dist/core/default-component/SessionLost.component.js.map +1 -1
- package/dist/core/default-component/SilentCallback.component.js +13 -73
- package/dist/core/default-component/SilentCallback.component.js.map +1 -1
- package/dist/core/default-component/SilentLogin.component.js +13 -43
- package/dist/core/default-component/SilentLogin.component.js.map +1 -1
- package/dist/core/default-component/index.js +6 -19
- package/dist/core/default-component/index.js.map +1 -1
- package/dist/core/routes/OidcRoutes.js +20 -49
- package/dist/core/routes/OidcRoutes.js.map +1 -1
- package/dist/core/routes/index.js +1 -8
- package/dist/core/routes/index.js.map +1 -1
- package/dist/core/routes/withRouter.js +13 -20
- package/dist/core/routes/withRouter.js.map +1 -1
- package/dist/index.js +5 -18
- package/dist/index.js.map +1 -1
- package/dist/vanilla/checkSessionIFrame.js +21 -30
- package/dist/vanilla/checkSessionIFrame.js.map +1 -1
- package/dist/vanilla/index.js +1 -5
- package/dist/vanilla/index.js.map +1 -1
- package/dist/vanilla/initSession.js +41 -78
- package/dist/vanilla/initSession.js.map +1 -1
- package/dist/vanilla/initWorker.js +99 -168
- package/dist/vanilla/initWorker.js.map +1 -1
- package/dist/vanilla/memoryStorageBackend.js +11 -17
- package/dist/vanilla/memoryStorageBackend.js.map +1 -1
- package/dist/vanilla/noHashQueryStringUtils.js +15 -46
- package/dist/vanilla/noHashQueryStringUtils.js.map +1 -1
- package/dist/vanilla/oidc.js +945 -1394
- package/dist/vanilla/oidc.js.map +1 -1
- package/dist/vanilla/parseTokens.js +33 -53
- package/dist/vanilla/parseTokens.js.map +1 -1
- package/dist/vanilla/route-utils.js +17 -23
- package/dist/vanilla/route-utils.js.map +1 -1
- package/dist/vanilla/timer.js +21 -23
- package/dist/vanilla/timer.js.map +1 -1
- package/package.json +2 -3
- package/src/oidc/FetchToken.tsx +0 -61
- package/src/oidc/OidcProvider.tsx +0 -206
- package/src/oidc/OidcSecure.tsx +0 -37
- package/src/oidc/ReactOidc.tsx +0 -139
- package/src/oidc/User.ts +0 -38
- package/src/oidc/core/default-component/AuthenticateError.component.tsx +0 -13
- package/src/oidc/core/default-component/Authenticating.component.tsx +0 -13
- package/src/oidc/core/default-component/Callback.component.tsx +0 -46
- package/src/oidc/core/default-component/Loading.component.tsx +0 -10
- package/src/oidc/core/default-component/ServiceWorkerNotSupported.component.tsx +0 -13
- package/src/oidc/core/default-component/SessionLost.component.tsx +0 -14
- package/src/oidc/core/default-component/SilentCallback.component.tsx +0 -22
- package/src/oidc/core/default-component/SilentLogin.component.tsx +0 -35
- package/src/oidc/core/default-component/index.ts +0 -6
- package/src/oidc/core/routes/OidcRoutes.spec.tsx +0 -15
- package/src/oidc/core/routes/OidcRoutes.tsx +0 -69
- package/src/oidc/core/routes/__snapshots__/OidcRoutes.spec.tsx.snap +0 -7
- package/src/oidc/core/routes/index.ts +0 -2
- package/src/oidc/core/routes/withRouter.spec.tsx +0 -48
- package/src/oidc/core/routes/withRouter.tsx +0 -64
- package/src/oidc/index.ts +0 -5
- package/src/oidc/vanilla/OidcServiceWorker.js +0 -435
- package/src/oidc/vanilla/OidcTrustedDomains.js +0 -16
- package/src/oidc/vanilla/checkSessionIFrame.ts +0 -82
- package/src/oidc/vanilla/index.ts +0 -1
- package/src/oidc/vanilla/initSession.ts +0 -67
- package/src/oidc/vanilla/initWorker.ts +0 -165
- package/src/oidc/vanilla/memoryStorageBackend.ts +0 -33
- package/src/oidc/vanilla/noHashQueryStringUtils.ts +0 -33
- package/src/oidc/vanilla/oidc.ts +0 -1230
- package/src/oidc/vanilla/parseTokens.ts +0 -150
- package/src/oidc/vanilla/route-utils.spec.ts +0 -15
- package/src/oidc/vanilla/route-utils.ts +0 -76
- package/src/oidc/vanilla/timer.ts +0 -165
- package/tsconfig.json +0 -38
|
@@ -1,48 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.HashQueryStringUtils = exports.NoHashQueryStringUtils = void 0;
|
|
19
|
-
var appauth_1 = require("@openid/appauth");
|
|
20
|
-
var NoHashQueryStringUtils = /** @class */ (function (_super) {
|
|
21
|
-
__extends(NoHashQueryStringUtils, _super);
|
|
22
|
-
function NoHashQueryStringUtils() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
NoHashQueryStringUtils.prototype.parse = function (input, useHash) {
|
|
26
|
-
var output = _super.prototype.parse.call(this, input, false /* never use hash */);
|
|
1
|
+
import { BasicQueryStringUtils } from '@openid/appauth';
|
|
2
|
+
export class NoHashQueryStringUtils extends BasicQueryStringUtils {
|
|
3
|
+
parse(input, useHash) {
|
|
4
|
+
const output = super.parse(input, false /* never use hash */);
|
|
27
5
|
return output;
|
|
28
|
-
};
|
|
29
|
-
return NoHashQueryStringUtils;
|
|
30
|
-
}(appauth_1.BasicQueryStringUtils));
|
|
31
|
-
exports.NoHashQueryStringUtils = NoHashQueryStringUtils;
|
|
32
|
-
var keys = ["code", "session_state", "state"];
|
|
33
|
-
var HashQueryStringUtils = /** @class */ (function (_super) {
|
|
34
|
-
__extends(HashQueryStringUtils, _super);
|
|
35
|
-
function HashQueryStringUtils() {
|
|
36
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
6
|
}
|
|
38
|
-
|
|
39
|
-
|
|
7
|
+
}
|
|
8
|
+
const keys = ["code", "session_state", "state"];
|
|
9
|
+
export class HashQueryStringUtils extends BasicQueryStringUtils {
|
|
10
|
+
parse(input, useHash) {
|
|
11
|
+
const output = super.parse(input, true /* use hash */);
|
|
40
12
|
// Fix AppAuthJs behavior
|
|
41
|
-
|
|
42
|
-
Object.entries(output).map(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (key.endsWith("?".concat(k))) {
|
|
13
|
+
let propertyToDelelete = null;
|
|
14
|
+
Object.entries(output).map(([key, value]) => {
|
|
15
|
+
keys.forEach(k => {
|
|
16
|
+
if (key.endsWith(`?${k}`)) {
|
|
46
17
|
output[k] = value;
|
|
47
18
|
propertyToDelelete = key;
|
|
48
19
|
}
|
|
@@ -52,8 +23,6 @@ var HashQueryStringUtils = /** @class */ (function (_super) {
|
|
|
52
23
|
delete output[propertyToDelelete];
|
|
53
24
|
}
|
|
54
25
|
return output;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
}(appauth_1.BasicQueryStringUtils));
|
|
58
|
-
exports.HashQueryStringUtils = HashQueryStringUtils;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
59
28
|
//# sourceMappingURL=noHashQueryStringUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noHashQueryStringUtils.js","sourceRoot":"","sources":["../../src/oidc/vanilla/noHashQueryStringUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"noHashQueryStringUtils.js","sourceRoot":"","sources":["../../src/oidc/vanilla/noHashQueryStringUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,iBAAiB,CAAC;AAEtD,MAAM,OAAO,sBAAuB,SAAQ,qBAAqB;IAC7D,KAAK,CAAC,KAAK,EAAE,OAAO;QAChB,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAED,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA;AAE/C,MAAM,OAAO,oBAAqB,SAAQ,qBAAqB;IAC3D,KAAK,CAAC,KAAK,EAAE,OAAO;QAChB,MAAM,MAAM,GAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAExD,yBAAyB;QACzB,IAAI,kBAAkB,GAAG,IAAI,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACxC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBACb,IAAG,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAC;oBACrB,MAAM,CAAC,CAAC,CAAC,GAAE,KAAK,CAAC;oBACjB,kBAAkB,GAAG,GAAG,CAAC;iBAC5B;YACL,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAC;QAEH,IAAG,kBAAkB,EAAC;YAClB,OAAO,MAAM,CAAC,kBAAkB,CAAC,CAAC;SACrC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|