@axa-fr/react-oidc 6.9.3 → 6.9.4
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 +2 -5
- package/dist/FetchToken.js.map +1 -1
- package/dist/OidcProvider.js +10 -38
- package/dist/OidcProvider.js.map +1 -1
- package/dist/OidcSecure.js +4 -27
- package/dist/OidcSecure.js.map +1 -1
- package/dist/core/default-component/AuthenticateError.component.js +2 -28
- package/dist/core/default-component/AuthenticateError.component.js.map +1 -1
- package/dist/core/default-component/Authenticating.component.js +2 -28
- package/dist/core/default-component/Authenticating.component.js.map +1 -1
- package/dist/core/default-component/Callback.component.js +5 -30
- package/dist/core/default-component/Callback.component.js.map +1 -1
- package/dist/core/default-component/Loading.component.js +2 -25
- package/dist/core/default-component/Loading.component.js.map +1 -1
- package/dist/core/default-component/ServiceWorkerNotSupported.component.js +2 -28
- package/dist/core/default-component/ServiceWorkerNotSupported.component.js.map +1 -1
- package/dist/core/default-component/SessionLost.component.js +2 -8
- package/dist/core/default-component/SessionLost.component.js.map +1 -1
- package/dist/core/default-component/SilentCallback.component.js +3 -25
- package/dist/core/default-component/SilentCallback.component.js.map +1 -1
- package/dist/core/default-component/SilentLogin.component.js +3 -25
- package/dist/core/default-component/SilentLogin.component.js.map +1 -1
- package/dist/core/routes/OidcRoutes.js +5 -4
- package/dist/core/routes/OidcRoutes.js.map +1 -1
- package/package.json +2 -2
package/dist/FetchToken.js
CHANGED
|
@@ -8,12 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.useOidcFetch = exports.withOidcFetch = void 0;
|
|
16
|
-
const
|
|
13
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
14
|
const vanillaOidc_1 = require("./vanilla/vanillaOidc");
|
|
18
15
|
const defaultConfigurationName = "default";
|
|
19
16
|
const fetchWithToken = (fetch, getOidcWithConfigurationName) => (...params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -43,7 +40,7 @@ const fetchWithToken = (fetch, getOidcWithConfigurationName) => (...params) => _
|
|
|
43
40
|
});
|
|
44
41
|
const withOidcFetch = (fetch = null, configurationName = defaultConfigurationName) => (WrappedComponent) => (props) => {
|
|
45
42
|
const { fetch: newFetch } = (0, exports.useOidcFetch)(fetch || props.fetch, configurationName);
|
|
46
|
-
return
|
|
43
|
+
return (0, jsx_runtime_1.jsx)(WrappedComponent, Object.assign({}, props, { fetch: newFetch }));
|
|
47
44
|
};
|
|
48
45
|
exports.withOidcFetch = withOidcFetch;
|
|
49
46
|
const useOidcFetch = (fetch = null, configurationName = defaultConfigurationName) => {
|
package/dist/FetchToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchToken.js","sourceRoot":"","sources":["../src/oidc/FetchToken.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FetchToken.js","sourceRoot":"","sources":["../src/oidc/FetchToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AACA,uDAAiD;AAQjD,MAAM,wBAAwB,GAAG,SAAS,CAAC;AAE3C,MAAM,cAAc,GAAG,CAAC,KAAY,EAAE,4BAAsD,EAAE,EAAE,CAAC,CAAO,GAAG,MAAyB,EAAE,EAAE;IACtI,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC;IACvC,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,mBAAM,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAE9D,IAAI,OAAO,G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AAE,QAAQ,IAAI,CAAC;AAC1D,CAAC,CAAC;AALS,QAAA,aAAa,iBAKtB;AAEG,MAAM,YAAY,GAAE,CAAC,QAAe,IAAI,EAAE,iBAAiB,GAAG,wBAAwB,EAAE,EAAE;IAC/F,MAAM,aAAa,GAAG,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;IAC5C,MAAM,OAAO,GAAG,yBAAW,CAAC,GAAG,CAAC;IAChC,MAAM,4BAA4B,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAG,cAAc,CAAC,aAAa,EAAE,4BAA4B,CAAC,CAAC;IAC7E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC7B,CAAC,CAAA;AANY,QAAA,YAAY,gBAMxB"}
|
package/dist/OidcProvider.js
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.OidcProvider = void 0;
|
|
30
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
31
9
|
const vanillaOidc_1 = require("./vanilla/vanillaOidc");
|
|
32
10
|
const OidcRoutes_1 = __importDefault(require("./core/routes/OidcRoutes"));
|
|
33
11
|
const index_1 = require("./core/default-component/index");
|
|
@@ -52,14 +30,14 @@ const OidcSession = ({ loadingComponent, children, configurationName }) => {
|
|
|
52
30
|
};
|
|
53
31
|
}, [configurationName]);
|
|
54
32
|
const LoadingComponent = loadingComponent;
|
|
55
|
-
return (
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: loading ? ((0, jsx_runtime_1.jsx)(LoadingComponent, { configurationName: configurationName })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children })) }));
|
|
56
34
|
};
|
|
57
35
|
const Switch = ({ isLoading, loadingComponent, children, configurationName }) => {
|
|
58
36
|
const LoadingComponent = loadingComponent;
|
|
59
37
|
if (isLoading) {
|
|
60
|
-
return
|
|
38
|
+
return (0, jsx_runtime_1.jsx)(LoadingComponent, Object.assign({ configurationName: configurationName }, { children: children }));
|
|
61
39
|
}
|
|
62
|
-
return
|
|
40
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
63
41
|
};
|
|
64
42
|
const OidcProvider = ({ children, configuration, configurationName = "default", callbackSuccessComponent = index_1.CallBackSuccess, authenticatingComponent = index_1.Authenticating, loadingComponent = index_1.Loading, serviceWorkerNotSupportedComponent = ServiceWorkerNotSupported_component_1.default, authenticatingErrorComponent = AuthenticateError_component_1.default, sessionLostComponent = index_1.SessionLost, onSessionLost = null, onLogoutFromAnotherTab = null, onLogoutFromSameTab = null, withCustomHistory = null, onEvent = null, }) => {
|
|
65
43
|
const getOidc = (configurationName = "default") => {
|
|
@@ -132,24 +110,18 @@ const OidcProvider = ({ children, configuration, configurationName = "default",
|
|
|
132
110
|
let eventName = event.name;
|
|
133
111
|
switch (eventName) {
|
|
134
112
|
case vanillaOidc_1.VanillaOidc.eventNames.service_worker_not_supported_by_browser:
|
|
135
|
-
return
|
|
136
|
-
react_1.default.createElement(ServiceWorkerNotSupportedComponent, { configurationName: configurationName }));
|
|
113
|
+
return (0, jsx_runtime_1.jsx)(Switch, Object.assign({ loadingComponent: LoadingComponent, isLoading: isLoading, configurationName: configurationName }, { children: (0, jsx_runtime_1.jsx)(ServiceWorkerNotSupportedComponent, { configurationName: configurationName }) }));
|
|
137
114
|
case vanillaOidc_1.VanillaOidc.eventNames.loginAsync_begin:
|
|
138
|
-
return
|
|
139
|
-
react_1.default.createElement(AuthenticatingComponent, { configurationName: configurationName }));
|
|
115
|
+
return (0, jsx_runtime_1.jsx)(Switch, Object.assign({ loadingComponent: LoadingComponent, isLoading: isLoading, configurationName: configurationName }, { children: (0, jsx_runtime_1.jsx)(AuthenticatingComponent, { configurationName: configurationName }) }));
|
|
140
116
|
case vanillaOidc_1.VanillaOidc.eventNames.loginAsync_error:
|
|
141
117
|
case vanillaOidc_1.VanillaOidc.eventNames.loginCallbackAsync_error:
|
|
142
|
-
return
|
|
143
|
-
react_1.default.createElement(AuthenticatingErrorComponent, { configurationName: configurationName }));
|
|
118
|
+
return (0, jsx_runtime_1.jsx)(Switch, Object.assign({ loadingComponent: LoadingComponent, isLoading: isLoading, configurationName: configurationName }, { children: (0, jsx_runtime_1.jsx)(AuthenticatingErrorComponent, { configurationName: configurationName }) }));
|
|
144
119
|
case vanillaOidc_1.VanillaOidc.eventNames.refreshTokensAsync_error:
|
|
145
120
|
case vanillaOidc_1.VanillaOidc.eventNames.syncTokensAsync_error:
|
|
146
121
|
case vanillaOidc_1.VanillaOidc.eventNames.logout_from_another_tab:
|
|
147
|
-
return
|
|
148
|
-
react_1.default.createElement(SessionLostComponent, { configurationName: configurationName }));
|
|
122
|
+
return (0, jsx_runtime_1.jsx)(Switch, Object.assign({ loadingComponent: LoadingComponent, isLoading: isLoading, configurationName: configurationName }, { children: (0, jsx_runtime_1.jsx)(SessionLostComponent, { configurationName: configurationName }) }));
|
|
149
123
|
default:
|
|
150
|
-
return (
|
|
151
|
-
react_1.default.createElement(OidcRoutes_1.default, { redirect_uri: oidc.configuration.redirect_uri, silent_redirect_uri: oidc.configuration.silent_redirect_uri, silent_login_uri: oidc.configuration.silent_login_uri, callbackSuccessComponent: callbackSuccessComponent, callbackErrorComponent: authenticatingErrorComponent, authenticatingComponent: authenticatingComponent, configurationName: configurationName, withCustomHistory: withCustomHistory },
|
|
152
|
-
react_1.default.createElement(OidcSession, { loadingComponent: LoadingComponent, configurationName: configurationName }, children))));
|
|
124
|
+
return ((0, jsx_runtime_1.jsx)(Switch, Object.assign({ loadingComponent: LoadingComponent, isLoading: isLoading, configurationName: configurationName }, { children: (0, jsx_runtime_1.jsx)(OidcRoutes_1.default, Object.assign({ redirect_uri: oidc.configuration.redirect_uri, silent_redirect_uri: oidc.configuration.silent_redirect_uri, silent_login_uri: oidc.configuration.silent_login_uri, callbackSuccessComponent: callbackSuccessComponent, callbackErrorComponent: authenticatingErrorComponent, authenticatingComponent: authenticatingComponent, configurationName: configurationName, withCustomHistory: withCustomHistory }, { children: (0, jsx_runtime_1.jsx)(OidcSession, Object.assign({ loadingComponent: LoadingComponent, configurationName: configurationName }, { children: children })) })) })));
|
|
153
125
|
}
|
|
154
126
|
};
|
|
155
127
|
exports.OidcProvider = OidcProvider;
|
package/dist/OidcProvider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OidcProvider.js","sourceRoot":"","sources":["../src/oidc/OidcProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OidcProvider.js","sourceRoot":"","sources":["../src/oidc/OidcProvider.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAuF;AAEvF,uDAAkD;AAClD,0EAAkD;AAClD,0DAAqG;AACrG,uIAAqG;AACrG,uHAAuF;AAOvF,MAAM,iBAAiB,GAAG,EAAC,IAAI,EAAC,EAAE,EAAE,IAAI,EAAC,IAAI,EAAC,CAAC;AAyB/C,MAAM,WAAW,GAA6C,CAAC,EAAC,gBAAgB,EAAE,QAAQ,EAAE,iBAAiB,EAAC,EAAE,EAAE;IAC9G,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAI,yBAAW,CAAC,GAAG,CAAC;IACjC,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAI,SAAS,GAAG,IAAI,CAAC;QACrB,IAAG,IAAI,EAAE;YACL,IAAI,CAAC,2BAA2B,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,IAAI,SAAS,EAAE;oBACX,UAAU,CAAC,KAAK,CAAC,CAAC;iBACrB;YACL,CAAC,CAAC,CAAA;SACL;QACD,OAAO,GAAG,EAAE;YACR,SAAS,GAAG,KAAK,CAAC;QACtB,CAAC,CAAA;IACL,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACxB,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAC1C,OAAO,CACH,2DACK,OAAO,CAAC,CAAC,CAAC,CACR,uBAAC,gBAAgB,IAAC,iBAAiB,EAAE,iBAAiB,GAAG,CAC3D,CAAC,CAAC,CAAC,CACA,2DAAG,QAAQ,GAA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,EAAE,iBAAiB,gBAChG,uBAAC,oBAAU,kBAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY,EAC7C,mBAAmB,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAC3D,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB,EACrD,wBAAwB,EAAE,wBAAwB,EAClD,sBAAsB,EAAE,4BAA4B,EACpD,uBAAuB,EAAE,uBAAuB,EAChD,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,gBAC5C,uBAAC,WAAW,kBAAC,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,gBAClF,QAAQ,IACG,IACL,IACV,CACZ,CAAC;KACT;AACL,CAAC,CAAC;AAhIW,QAAA,YAAY,gBAgIvB;AAEF,kBAAe,oBAAY,CAAC"}
|
package/dist/OidcSecure.js
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.withOidcSecure = exports.OidcSecure = void 0;
|
|
27
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
28
6
|
const vanillaOidc_1 = require("./vanilla/vanillaOidc");
|
|
29
7
|
const OidcSecure = ({ children, callbackPath = null, extras = null, configurationName = "default" }) => {
|
|
30
8
|
const getOidc = vanillaOidc_1.VanillaOidc.get;
|
|
@@ -39,12 +17,11 @@ const OidcSecure = ({ children, callbackPath = null, extras = null, configuratio
|
|
|
39
17
|
if (!oidc.tokens) {
|
|
40
18
|
return null;
|
|
41
19
|
}
|
|
42
|
-
return
|
|
20
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
43
21
|
};
|
|
44
22
|
exports.OidcSecure = OidcSecure;
|
|
45
23
|
const withOidcSecure = (WrappedComponent, callbackPath = null, extras = null, configurationName = "default") => (props) => {
|
|
46
|
-
return
|
|
47
|
-
react_1.default.createElement(WrappedComponent, Object.assign({}, props)));
|
|
24
|
+
return (0, jsx_runtime_1.jsx)(exports.OidcSecure, Object.assign({ callbackPath: callbackPath, extras: extras, configurationName: configurationName }, { children: (0, jsx_runtime_1.jsx)(WrappedComponent, Object.assign({}, props)) }));
|
|
48
25
|
};
|
|
49
26
|
exports.withOidcSecure = withOidcSecure;
|
|
50
27
|
//# sourceMappingURL=OidcSecure.js.map
|
package/dist/OidcSecure.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OidcSecure.js","sourceRoot":"","sources":["../src/oidc/OidcSecure.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OidcSecure.js","sourceRoot":"","sources":["../src/oidc/OidcSecure.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8D;AAG9D,uDAAkD;AAQ3C,MAAM,UAAU,GAA2C,CAAC,EAAC,QAAQ,EAAE,YAAY,GAAC,IAAI,EAAE,MAAM,GAAC,IAAI,EAAE,iBAAiB,GAAC,SAAS,EAAC,EAAE,EAAE;IAC1I,MAAM,OAAO,GAAI,yBAAW,CAAC,GAAG,CAAC;IACjC,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAG,CAAC,IAAI,CAAC,MAAM,EAAC;YACZ,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;SACzC;QACD,OAAO,GAAG,EAAE;QACZ,CAAC,CAAA;IACL,CAAC,EAAE,CAAC,iBAAiB,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAA;IAE7C,IAAG,CAAC,IAAI,CAAC,MAAM,EAAC;QACd,OAAO,IAAI,CAAC;KACb;IACD,OAAO,2DAAG,QAAQ,GAAI,CAAA;AAC1B,CAAC,CAAA;AAfY,QAAA,UAAU,cAetB;AAEM,MAAM,cAAc,GAAG,CAC5B,gBAAwD,EACxD,YAAY,GAAC,IAAI,EACjB,MAAM,GAAC,IAAI,EACX,iBAAiB,GAAC,SAAS,EAC3B,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;IACb,OAAO,uBAAC,kBAAU,kBAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB,gBAAE,uBAAC,gBAAgB,oBAAK,KAAK,EAAI,IAAa,CAAC;AACpJ,CAAC,CAAC;AAPW,QAAA,cAAc,kBAOzB"}
|
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
27
|
-
const AuthenticatingError = () => (
|
|
28
|
-
React.createElement("div", { className: "oidc-authenticating__container" },
|
|
29
|
-
React.createElement("h1", { className: "oidc-authenticating__title" }, "Error authentication"),
|
|
30
|
-
React.createElement("p", { className: "oidc-authenticating__content" }, "An error occurred during authentication."))));
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const AuthenticatingError = () => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "oidc-authenticating" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "oidc-authenticating__container" }, { children: [(0, jsx_runtime_1.jsx)("h1", Object.assign({ className: "oidc-authenticating__title" }, { children: "Error authentication" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "oidc-authenticating__content" }, { children: "An error occurred during authentication." }))] })) })));
|
|
31
5
|
exports.default = AuthenticatingError;
|
|
32
6
|
//# sourceMappingURL=AuthenticateError.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticateError.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/AuthenticateError.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthenticateError.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/AuthenticateError.component.tsx"],"names":[],"mappings":";;;AAGA,MAAM,mBAAmB,GAAuB,GAAG,EAAE,CAAC,CACpD,8CAAK,SAAS,EAAC,qBAAqB,gBAClC,+CAAK,SAAS,EAAC,gCAAgC,iBAC7C,6CAAI,SAAS,EAAC,4BAA4B,0CAA0B,EACpE,4CAAG,SAAS,EAAC,8BAA8B,8DAA6C,KACpF,IACF,CACP,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
|
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
27
|
-
const Authenticating = () => (
|
|
28
|
-
React.createElement("div", { className: "oidc-authenticating__container" },
|
|
29
|
-
React.createElement("h1", { className: "oidc-authenticating__title" }, "Authentication in progress"),
|
|
30
|
-
React.createElement("p", { className: "oidc-authenticating__content" }, "You will be redirected to the login page."))));
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Authenticating = () => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "oidc-authenticating" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "oidc-authenticating__container" }, { children: [(0, jsx_runtime_1.jsx)("h1", Object.assign({ className: "oidc-authenticating__title" }, { children: "Authentication in progress" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "oidc-authenticating__content" }, { children: "You will be redirected to the login page." }))] })) })));
|
|
31
5
|
exports.default = Authenticating;
|
|
32
6
|
//# sourceMappingURL=Authenticating.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authenticating.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/Authenticating.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Authenticating.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/Authenticating.component.tsx"],"names":[],"mappings":";;;AAGA,MAAM,cAAc,GAAwB,GAAG,EAAE,CAAC,CAChD,8CAAK,SAAS,EAAC,qBAAqB,gBAClC,+CAAK,SAAS,EAAC,gCAAgC,iBAC7C,6CAAI,SAAS,EAAC,4BAA4B,gDAAgC,EAC1E,4CAAG,SAAS,EAAC,8BAA8B,+DAA8C,KACrF,IACF,CACP,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -36,14 +13,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
13
|
};
|
|
37
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
15
|
exports.CallBackSuccess = void 0;
|
|
39
|
-
const
|
|
16
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
|
+
const react_1 = require("react");
|
|
40
18
|
const AuthenticateError_component_1 = __importDefault(require("./AuthenticateError.component"));
|
|
41
19
|
const vanillaOidc_1 = require("../../vanilla/vanillaOidc");
|
|
42
20
|
const withRouter_1 = require("../routes/withRouter");
|
|
43
|
-
const CallBackSuccess = () => (
|
|
44
|
-
react_1.default.createElement("div", { className: "oidc-callback__container" },
|
|
45
|
-
react_1.default.createElement("h1", { className: "oidc-callback__title" }, "Authentication complete"),
|
|
46
|
-
react_1.default.createElement("p", { className: "oidc-callback__content" }, "You will be redirected to your application."))));
|
|
21
|
+
const CallBackSuccess = () => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "oidc-callback" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "oidc-callback__container" }, { children: [(0, jsx_runtime_1.jsx)("h1", Object.assign({ className: "oidc-callback__title" }, { children: "Authentication complete" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "oidc-callback__content" }, { children: "You will be redirected to your application." }))] })) })));
|
|
47
22
|
exports.CallBackSuccess = CallBackSuccess;
|
|
48
23
|
const CallbackManager = ({ callBackError, callBackSuccess, configurationName, withCustomHistory }) => {
|
|
49
24
|
const [error, setError] = (0, react_1.useState)(false);
|
|
@@ -70,9 +45,9 @@ const CallbackManager = ({ callBackError, callBackSuccess, configurationName, wi
|
|
|
70
45
|
const CallbackErrorComponent = callBackError || AuthenticateError_component_1.default;
|
|
71
46
|
const CallbackSuccessComponent = callBackSuccess || exports.CallBackSuccess;
|
|
72
47
|
if (error) {
|
|
73
|
-
return
|
|
48
|
+
return (0, jsx_runtime_1.jsx)(CallbackErrorComponent, { configurationName: configurationName });
|
|
74
49
|
}
|
|
75
|
-
return
|
|
50
|
+
return (0, jsx_runtime_1.jsx)(CallbackSuccessComponent, { configurationName: configurationName });
|
|
76
51
|
};
|
|
77
52
|
exports.default = CallbackManager;
|
|
78
53
|
//# sourceMappingURL=Callback.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callback.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/Callback.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Callback.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/Callback.component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iCAAgE;AAChE,gGAAgE;AAChE,2DAAsD;AACtD,qDAAsD;AAE/C,MAAM,eAAe,GAAuB,GAAG,EAAE,CAAE,CAAC,8CAAK,SAAS,EAAC,eAAe,gBACvF,+CAAK,SAAS,EAAC,0BAA0B,iBACvC,6CAAI,SAAS,EAAC,sBAAsB,6CAA6B,EACjE,4CAAG,SAAS,EAAC,wBAAwB,iEAAgD,KACjF,IACF,CAAC,CAAC;AALK,QAAA,eAAe,mBAKpB;AAER,MAAM,eAAe,GAAuB,CAAC,EAAC,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,EAAE,EAAE;IAEtH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC1C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,IAAI,CAAC;QACrB,MAAM,iBAAiB,GAAG,GAAS,EAAE;YACnC,MAAM,OAAO,GAAI,yBAAW,CAAC,GAAG,CAAC;YACjC,IAAI;gBACF,MAAM,EAAC,YAAY,EAAC,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC,kBAAkB,EAAE,CAAC;gBAC7E,MAAM,OAAO,GAAG,CAAC,iBAAiB,CAAC,CAAA,CAAC,CAAC,iBAAiB,EAAE,CAAA,CAAC,CAAC,IAAA,6BAAgB,GAAE,CAAC;gBAC7E,OAAO,CAAC,YAAY,CAAC,YAAY,IAAI,GAAG,CAAC,CAAA;aAC1C;YAAC,OAAO,KAAK,EAAE;gBACZ,IAAG,SAAS,EAAE;oBACZ,QAAQ,CAAC,IAAI,CAAC,CAAC;iBAChB;aACJ;QACH,CAAC,CAAA,CAAC;QACF,iBAAiB,EAAE,CAAC;QACpB,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,KAAK,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC,EAAC,EAAE,CAAC,CAAC;IAEN,MAAM,sBAAsB,GAAG,aAAa,IAAI,qCAAmB,CAAC;IACpE,MAAM,wBAAwB,GAAG,eAAe,IAAI,uBAAe,CAAC;IAEpE,IAAG,KAAK,EAAC;QACP,OAAO,uBAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAAA;KACxE;IAED,OAAO,uBAAC,wBAAwB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAAC;AAC5E,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -1,29 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
27
|
-
const Loading = () => (
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Loading = () => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "oidc-loading" }, { children: "Loading" })));
|
|
28
5
|
exports.default = Loading;
|
|
29
6
|
//# sourceMappingURL=Loading.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/Loading.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Loading.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/Loading.component.tsx"],"names":[],"mappings":";;;AAGA,MAAM,OAAO,GAAwB,GAAG,EAAE,CAAC,CACzC,+CAAM,SAAS,EAAC,cAAc,6BAEvB,CACR,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
27
|
-
const ServiceWorkerNotSupported = () => (
|
|
28
|
-
React.createElement("div", { className: "oidc-serviceworker__container" },
|
|
29
|
-
React.createElement("h1", { className: "oidc-serviceworker__title" }, "Unable to authenticate on this browser"),
|
|
30
|
-
React.createElement("p", { className: "oidc-serviceworker__content" }, "Your browser is not secure enough to make authentication work. Try updating your browser or use a newer browser."))));
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const ServiceWorkerNotSupported = () => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "oidc-serviceworker" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "oidc-serviceworker__container" }, { children: [(0, jsx_runtime_1.jsx)("h1", Object.assign({ className: "oidc-serviceworker__title" }, { children: "Unable to authenticate on this browser" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "oidc-serviceworker__content" }, { children: "Your browser is not secure enough to make authentication work. Try updating your browser or use a newer browser." }))] })) })));
|
|
31
5
|
exports.default = ServiceWorkerNotSupported;
|
|
32
6
|
//# sourceMappingURL=ServiceWorkerNotSupported.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceWorkerNotSupported.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/ServiceWorkerNotSupported.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServiceWorkerNotSupported.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/ServiceWorkerNotSupported.component.tsx"],"names":[],"mappings":";;;AAGA,MAAM,yBAAyB,GAAwB,GAAG,EAAE,CAAC,CAC3D,8CAAK,SAAS,EAAC,oBAAoB,gBACjC,+CAAK,SAAS,EAAC,+BAA+B,iBAC5C,6CAAI,SAAS,EAAC,2BAA2B,4DAA4C,EACrF,4CAAG,SAAS,EAAC,6BAA6B,sIAAqH,KAC3J,IACF,CACP,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.SessionLost = void 0;
|
|
7
|
-
const
|
|
8
|
-
const SessionLost = () => (
|
|
9
|
-
react_1.default.createElement("div", { className: "oidc-session-lost__container" },
|
|
10
|
-
react_1.default.createElement("h1", { className: "oidc-session-lost__title" }, "Session timed out"),
|
|
11
|
-
react_1.default.createElement("p", { className: "oidc-session-lost__content" }, "Your session has expired. Please re-authenticate."))));
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SessionLost = () => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "oidc-session-lost" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "oidc-session-lost__container" }, { children: [(0, jsx_runtime_1.jsx)("h1", Object.assign({ className: "oidc-session-lost__title" }, { children: "Session timed out" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "oidc-session-lost__content" }, { children: "Your session has expired. Please re-authenticate." }))] })) })));
|
|
12
6
|
exports.SessionLost = SessionLost;
|
|
13
7
|
exports.default = exports.SessionLost;
|
|
14
8
|
//# sourceMappingURL=SessionLost.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionLost.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SessionLost.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionLost.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SessionLost.component.tsx"],"names":[],"mappings":";;;;AAEO,MAAM,WAAW,GAAuB,GAAG,EAAE,CAAC,CACnD,8CAAK,SAAS,EAAC,mBAAmB,gBAChC,+CAAK,SAAS,EAAC,8BAA8B,iBAC3C,6CAAI,SAAS,EAAC,0BAA0B,uCAAuB,EAC/D,4CAAG,SAAS,EAAC,4BAA4B,uEAErC,KACA,IACF,CACP,CAAC;AATW,QAAA,WAAW,eAStB;AAEF,kBAAe,mBAAW,CAAC"}
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -32,7 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
9
|
});
|
|
33
10
|
};
|
|
34
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
const
|
|
12
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
13
|
+
const react_1 = require("react");
|
|
36
14
|
const vanillaOidc_1 = require("../../vanilla/vanillaOidc");
|
|
37
15
|
const CallbackManager = ({ configurationName }) => {
|
|
38
16
|
(0, react_1.useEffect)(() => {
|
|
@@ -47,7 +25,7 @@ const CallbackManager = ({ configurationName }) => {
|
|
|
47
25
|
isMounted = false;
|
|
48
26
|
};
|
|
49
27
|
}, []);
|
|
50
|
-
return
|
|
28
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
51
29
|
};
|
|
52
30
|
exports.default = CallbackManager;
|
|
53
31
|
//# sourceMappingURL=SilentCallback.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SilentCallback.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentCallback.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SilentCallback.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentCallback.component.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAsD;AACtD,2DAAqD;AAErD,MAAM,eAAe,GAAuB,CAAC,EAAC,iBAAiB,EAAE,EAAE,EAAE;IAEjE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAI,SAAS,GAAG,IAAI,CAAC;QACrB,MAAM,iBAAiB,GAAG,GAAS,EAAE;YACjC,MAAM,OAAO,GAAI,yBAAW,CAAC,GAAG,CAAC;YACjC,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;YACxC,IAAI,CAAC,wBAAwB,EAAE,CAAC;QACpC,CAAC,CAAA,CAAC;QACF,iBAAiB,EAAE,CAAC;QACpB,OAAO,GAAG,EAAE;YACR,SAAS,GAAG,KAAK,CAAC;QACtB,CAAC,CAAC;IACN,CAAC,EAAC,EAAE,CAAC,CAAC;IAEN,OAAO,kDAAK,CAAC;AACjB,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const react_1 = require("react");
|
|
27
5
|
const vanillaOidc_1 = require("../../vanilla/vanillaOidc");
|
|
28
6
|
const route_utils_1 = require("../../vanilla/route-utils");
|
|
29
7
|
const SilentLogin = (({ configurationName }) => {
|
|
@@ -47,7 +25,7 @@ const SilentLogin = (({ configurationName }) => {
|
|
|
47
25
|
return () => {
|
|
48
26
|
};
|
|
49
27
|
}, []);
|
|
50
|
-
return
|
|
28
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
51
29
|
});
|
|
52
30
|
exports.default = SilentLogin;
|
|
53
31
|
//# sourceMappingURL=SilentLogin.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SilentLogin.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentLogin.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SilentLogin.component.js","sourceRoot":"","sources":["../../../src/oidc/core/default-component/SilentLogin.component.tsx"],"names":[],"mappings":";;;AAAA,iCAAsD;AACtD,2DAAsD;AACtD,2DAA0E;AAG1E,MAAM,WAAW,GAAuB,CAAC,CAAC,EAAC,iBAAiB,EAAE,EAAE,EAAE;IAC9D,MAAM,WAAW,GAAG,IAAA,6CAA+B,EAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE1E,MAAM,OAAO,GAAI,yBAAW,CAAC,GAAG,CAAC;IACjC,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAExC,IAAI,MAAM,GAAG,IAAI,CAAC;IAElB,KAAK,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QAClD,IAAG,GAAG,KAAK,OAAO,IAAI,GAAG,IAAI,OAAO,EAAC;YACjC,SAAS;SACZ;QACD,IAAG,MAAM,KAAK,IAAI,EAAC;YACf,MAAM,GAAG,EAAE,CAAC;SACf;QACD,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;KACvB;IAED,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAG,CAAC,IAAI,CAAC,MAAM,EAAC;YACZ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAG,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;SAC3D;QACD,OAAO,GAAG,EAAE;QACZ,CAAC,CAAA;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,kDAAK,CAAC;AACjB,CAAC,CAAC,CAAC;AAEH,kBAAe,WAAW,CAAC"}
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
30
|
const react_1 = __importStar(require("react"));
|
|
30
31
|
const route_utils_1 = require("../../vanilla/route-utils");
|
|
31
32
|
const Callback_component_1 = __importDefault(require("../default-component/Callback.component"));
|
|
@@ -45,19 +46,19 @@ const OidcRoutes = ({ callbackErrorComponent, callbackSuccessComponent, redirect
|
|
|
45
46
|
const callbackPath = (0, route_utils_1.getPath)(redirect_uri);
|
|
46
47
|
if (silent_redirect_uri) {
|
|
47
48
|
if (path === (0, route_utils_1.getPath)(silent_redirect_uri)) {
|
|
48
|
-
return
|
|
49
|
+
return (0, jsx_runtime_1.jsx)(SilentCallback_component_1.default, { configurationName: configurationName });
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
if (silent_login_uri) {
|
|
52
53
|
if (path === (0, route_utils_1.getPath)(silent_login_uri)) {
|
|
53
|
-
return
|
|
54
|
+
return (0, jsx_runtime_1.jsx)(SilentLogin_component_1.default, { configurationName: configurationName });
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
switch (path) {
|
|
57
58
|
case callbackPath:
|
|
58
|
-
return
|
|
59
|
+
return (0, jsx_runtime_1.jsx)(Callback_component_1.default, { callBackError: callbackErrorComponent, callBackSuccess: callbackSuccessComponent, configurationName: configurationName, withCustomHistory: withCustomHistory });
|
|
59
60
|
default:
|
|
60
|
-
return
|
|
61
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OidcRoutes.js","sourceRoot":"","sources":["../../../src/oidc/core/routes/OidcRoutes.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OidcRoutes.js","sourceRoot":"","sources":["../../../src/oidc/core/routes/OidcRoutes.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyF;AACzF,2DAAoD;AACpD,iGAAwE;AACxE,6GAAoF;AAEpF,uGAA8E;AAE9E,MAAM,YAAY,GAA6B,EAE9C,CAAC;AAaF,MAAM,UAAU,GAA2C,CAAC,EAC1D,sBAAsB,EACtB,wBAAwB,EACoC,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAC5E,QAAQ,EAAE,iBAAiB,EAC3B,iBAAiB,GAAC,IAAI,GACvB,EAAE,EAAE;IACH,iEAAiE;IACjE,IAAI,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,IAAA,qBAAO,EAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3D,MAA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C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/react-oidc",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"jsnext:main": "dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"copy": "copyfiles -f ./src/oidc/vanilla/OidcServiceWorker.js ./public && copyfiles -f -soft ./src/oidc/vanilla/OidcTrustedDomains.js ./public",
|
|
32
32
|
"start": "npm run copy && cross-env PORT=4200 react-scripts start",
|
|
33
|
-
"build": "npm
|
|
33
|
+
"build": "npm run copy && react-scripts build",
|
|
34
34
|
"test": "react-scripts test --coverage",
|
|
35
35
|
"eject": "react-scripts eject",
|
|
36
36
|
"clean": "rimraf dist",
|