@frontegg/js 7.131.0-alpha.0 → 7.131.0-alpha.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/index.js +1 -1
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +315 -152
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -1934,7 +1934,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1934
1934
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1935
1935
|
/* harmony export */ });
|
|
1936
1936
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1937
|
-
cdnVersion: '7.131.0-alpha.
|
|
1937
|
+
cdnVersion: '7.131.0-alpha.1'
|
|
1938
1938
|
});
|
|
1939
1939
|
|
|
1940
1940
|
/***/ }),
|
|
@@ -2943,6 +2943,9 @@ const _excluded = ["user"],
|
|
|
2943
2943
|
});
|
|
2944
2944
|
callback == null ? void 0 : callback(true);
|
|
2945
2945
|
} catch (e) {
|
|
2946
|
+
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
2947
|
+
return;
|
|
2948
|
+
}
|
|
2946
2949
|
setActivateState({
|
|
2947
2950
|
loading: false,
|
|
2948
2951
|
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.errorHandler)(e)
|
|
@@ -2980,6 +2983,9 @@ const _excluded = ["user"],
|
|
|
2980
2983
|
});
|
|
2981
2984
|
callback == null ? void 0 : callback(true);
|
|
2982
2985
|
} catch (e) {
|
|
2986
|
+
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
2987
|
+
return;
|
|
2988
|
+
}
|
|
2983
2989
|
setActivateState({
|
|
2984
2990
|
submitting: false,
|
|
2985
2991
|
loading: false,
|
|
@@ -6011,17 +6017,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6011
6017
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6012
6018
|
/* harmony export */ });
|
|
6013
6019
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
6014
|
-
/* harmony import */ var
|
|
6015
|
-
/* harmony import */ var
|
|
6020
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/refreshTokenRetry.js");
|
|
6021
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
|
|
6016
6022
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/random.js");
|
|
6017
6023
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/gtm.js");
|
|
6018
6024
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../constants */ "../../dist/@frontegg/redux-store/constants.js");
|
|
6019
|
-
/* harmony import */ var
|
|
6025
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
|
|
6020
6026
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/auth/LoginState/helpers.js");
|
|
6021
|
-
/* harmony import */ var
|
|
6027
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/helpers.js");
|
|
6022
6028
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/StepUpState/helpers.js");
|
|
6023
6029
|
/* harmony import */ var _StepUpState_consts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../StepUpState/consts */ "../../dist/@frontegg/redux-store/auth/StepUpState/consts.js");
|
|
6024
|
-
/* harmony import */ var
|
|
6030
|
+
/* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/toolkit/FronteggNativeModule.js");
|
|
6025
6031
|
|
|
6026
6032
|
|
|
6027
6033
|
|
|
@@ -6039,10 +6045,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6039
6045
|
const __requestHostedLoginSilentAuthorize = async () => {
|
|
6040
6046
|
var _response;
|
|
6041
6047
|
let response;
|
|
6042
|
-
|
|
6048
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_1__.restoreTabTenantUnlessSsoCallback)(store);
|
|
6049
|
+
if (_toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].isGetTokensAvailable()) {
|
|
6043
6050
|
const authApi = api.auth;
|
|
6044
|
-
response = await (0,
|
|
6045
|
-
const tokens = await
|
|
6051
|
+
response = await (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.refreshTokenWithRetry)(async () => {
|
|
6052
|
+
const tokens = await _toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].getTokens();
|
|
6046
6053
|
return await authApi.silentOAuthRefreshTokenV3(tokens);
|
|
6047
6054
|
});
|
|
6048
6055
|
} else {
|
|
@@ -6050,8 +6057,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6050
6057
|
response = await api.auth.silentOAuthRefreshTokenV2();
|
|
6051
6058
|
} catch (error) {
|
|
6052
6059
|
var _store$auth$user, _error$errorContext;
|
|
6060
|
+
// the tenant requires SSO: hosted login for that tenant, not the plain one the caller falls back to
|
|
6061
|
+
if (await actions.__redirectToSsoIfRequired(error)) {
|
|
6062
|
+
return;
|
|
6063
|
+
}
|
|
6053
6064
|
const tenantId = (_store$auth$user = store.auth.user) == null ? void 0 : _store$auth$user.tenantId;
|
|
6054
|
-
if (!(0,
|
|
6065
|
+
if (!(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_4__.isEnforceSsoOnTenantAccessEnabled)(store.root.appName) || !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isSsoEnforcementError)(error) || ((_error$errorContext = error.errorContext) == null ? void 0 : _error$errorContext.ssoRequired) !== false || !tenantId) {
|
|
6055
6066
|
throw error;
|
|
6056
6067
|
}
|
|
6057
6068
|
// one retry for the tenant of the current token (a cold reload has no user yet: no retry)
|
|
@@ -6084,7 +6095,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6084
6095
|
context,
|
|
6085
6096
|
urlStrategy
|
|
6086
6097
|
} = store.root;
|
|
6087
|
-
const activeUri = (0,
|
|
6098
|
+
const activeUri = (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getUri)(urlStrategy);
|
|
6088
6099
|
if (activeUri === routes.hostedLoginRedirectUrl) {
|
|
6089
6100
|
console.debug('Calling loginWithRedirect while in hostedLoginCallback route');
|
|
6090
6101
|
return;
|
|
@@ -6132,8 +6143,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6132
6143
|
if (tenantId && !forceTenantId) {
|
|
6133
6144
|
params['tenantId'] = tenantId;
|
|
6134
6145
|
}
|
|
6135
|
-
if (
|
|
6136
|
-
return
|
|
6146
|
+
if (_toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].isAvailable('closeWindow')) {
|
|
6147
|
+
return _toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].closeWindow('not_authorized');
|
|
6137
6148
|
}
|
|
6138
6149
|
const searchParams = new URLSearchParams(params);
|
|
6139
6150
|
const url = `${oauthUrl}?${searchParams.toString()}`;
|
|
@@ -6169,14 +6180,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6169
6180
|
additionalParams
|
|
6170
6181
|
} = payload != null ? payload : {};
|
|
6171
6182
|
const urlDerivedStepUp = (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.getUrlDerivedStepUp)();
|
|
6172
|
-
const isNativeStepUp =
|
|
6183
|
+
const isNativeStepUp = _toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].isGetTokensAvailable() && urlDerivedStepUp.isStepUpRequested;
|
|
6173
6184
|
if (!isNativeStepUp) {
|
|
6174
6185
|
var _localStorage2;
|
|
6175
6186
|
(_localStorage2 = localStorage) == null ? void 0 : _localStorage2.removeItem(_StepUpState_consts__WEBPACK_IMPORTED_MODULE_9__.SHOULD_STEP_UP_KEY);
|
|
6176
6187
|
}
|
|
6177
6188
|
if (firstTime) {
|
|
6178
6189
|
const urlStrategy = store.root.urlStrategy;
|
|
6179
|
-
const activeUri = (0,
|
|
6190
|
+
const activeUri = (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getUri)(urlStrategy);
|
|
6180
6191
|
actions.setAuthState({
|
|
6181
6192
|
isLoading: true
|
|
6182
6193
|
});
|
|
@@ -6189,8 +6200,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6189
6200
|
additionalParams = additionalParams || {};
|
|
6190
6201
|
additionalParams['login_direct_action'] = btoa(JSON.stringify(loginDirectAction));
|
|
6191
6202
|
}
|
|
6192
|
-
if (
|
|
6193
|
-
return
|
|
6203
|
+
if (_toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].isAvailable('requestAuthorize')) {
|
|
6204
|
+
return _toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].requestAuthorize(payload);
|
|
6194
6205
|
}
|
|
6195
6206
|
if (((_additionalParams = additionalParams) == null ? void 0 : _additionalParams['prompt']) === 'login') {
|
|
6196
6207
|
return await requestHostedLoginAuthorize(additionalParams);
|
|
@@ -6306,8 +6317,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6306
6317
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6307
6318
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6308
6319
|
/* harmony export */ });
|
|
6309
|
-
/* harmony import */ var
|
|
6310
|
-
/* harmony import */ var
|
|
6320
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
6321
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
6311
6322
|
/* harmony import */ var _afterAuthNavigation_actions__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./afterAuthNavigation.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/afterAuthNavigation.actions.js");
|
|
6312
6323
|
/* harmony import */ var _handleVerifyMFAResponse_actions__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./handleVerifyMFAResponse.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/handleVerifyMFAResponse.actions.js");
|
|
6313
6324
|
/* harmony import */ var _mfaRequiredState_actions__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./mfaRequiredState.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/mfaRequiredState.actions.js");
|
|
@@ -6315,9 +6326,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6315
6326
|
/* harmony import */ var _mfaWithEmailCode_actions__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./mfaWithEmailCode.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/mfaWithEmailCode.actions.js");
|
|
6316
6327
|
/* harmony import */ var _mfaWithSMS_actions__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./mfaWithSMS.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/mfaWithSMS.actions.js");
|
|
6317
6328
|
/* harmony import */ var _mfaWithWebAuthn_actions__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./mfaWithWebAuthn.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/mfaWithWebAuthn.actions.js");
|
|
6318
|
-
/* harmony import */ var
|
|
6319
|
-
/* harmony import */ var
|
|
6320
|
-
/* harmony import */ var
|
|
6329
|
+
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
|
|
6330
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
|
|
6331
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/refreshTokenRetry.js");
|
|
6321
6332
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
6322
6333
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/gtm.js");
|
|
6323
6334
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/encoders.js");
|
|
@@ -6325,40 +6336,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6325
6336
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../state */ "../../dist/@frontegg/redux-store/auth/LoginState/state.js");
|
|
6326
6337
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/auth/LoginState/helpers.js");
|
|
6327
6338
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
|
|
6328
|
-
/* harmony import */ var
|
|
6339
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
|
|
6329
6340
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/feature-flags/index.js");
|
|
6330
6341
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/enums.js");
|
|
6331
6342
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
|
|
6332
6343
|
/* harmony import */ var _hostedLoginAuthorize_actions__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./hostedLoginAuthorize.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/hostedLoginAuthorize.actions.js");
|
|
6333
6344
|
/* harmony import */ var _oauthStorage__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../oauthStorage */ "../../dist/@frontegg/redux-store/auth/LoginState/oauthStorage.js");
|
|
6334
|
-
/* harmony import */ var
|
|
6345
|
+
/* harmony import */ var _StepUpState_consts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../StepUpState/consts */ "../../dist/@frontegg/redux-store/auth/StepUpState/consts.js");
|
|
6335
6346
|
/* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/toolkit/FronteggNativeModule.js");
|
|
6336
6347
|
/* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
|
|
6337
6348
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
|
|
6338
6349
|
/* harmony import */ var _consts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
|
|
6339
|
-
/* harmony import */ var
|
|
6340
|
-
/* harmony import */ var
|
|
6350
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/helpers.js");
|
|
6351
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/StepUpState/helpers.js");
|
|
6341
6352
|
/* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
|
|
6342
6353
|
/* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
|
|
6343
6354
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../constants */ "../../dist/@frontegg/redux-store/constants.js");
|
|
6344
6355
|
|
|
6345
6356
|
|
|
6346
|
-
const _excluded = ["
|
|
6347
|
-
_excluded2 = ["callback"
|
|
6357
|
+
const _excluded = ["callback", "error"],
|
|
6358
|
+
_excluded2 = ["callback"],
|
|
6348
6359
|
_excluded3 = ["callback"],
|
|
6349
6360
|
_excluded4 = ["callback"],
|
|
6350
6361
|
_excluded5 = ["callback"],
|
|
6351
|
-
_excluded6 = ["callback"],
|
|
6352
|
-
_excluded7 = ["callback"
|
|
6362
|
+
_excluded6 = ["callback", "events"],
|
|
6363
|
+
_excluded7 = ["callback"],
|
|
6353
6364
|
_excluded8 = ["callback"],
|
|
6354
|
-
_excluded9 = ["
|
|
6355
|
-
_excluded10 = ["
|
|
6365
|
+
_excluded9 = ["user"],
|
|
6366
|
+
_excluded10 = ["callback"],
|
|
6356
6367
|
_excluded11 = ["callback"],
|
|
6357
6368
|
_excluded12 = ["callback"],
|
|
6358
6369
|
_excluded13 = ["callback"],
|
|
6359
6370
|
_excluded14 = ["callback"],
|
|
6360
|
-
_excluded15 = ["callback"]
|
|
6361
|
-
_excluded16 = ["callback"];
|
|
6371
|
+
_excluded15 = ["callback"];
|
|
6362
6372
|
|
|
6363
6373
|
|
|
6364
6374
|
|
|
@@ -6391,22 +6401,49 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6391
6401
|
* Sends the user to log in through the tenant's SSO and back to the current page afterwards.
|
|
6392
6402
|
* @protected
|
|
6393
6403
|
*/
|
|
6404
|
+
// as preLogin (takeLeading): an SSO redirect started while another is in flight is dropped; the first one leaves the
|
|
6405
|
+
// page, and a second hosted one would replace the PKCE verifier the first one's callback needs
|
|
6406
|
+
let ssoRedirectInFlight = false;
|
|
6394
6407
|
const __redirectToSsoForTenant = async ({
|
|
6395
6408
|
tenantId,
|
|
6396
6409
|
address
|
|
6397
6410
|
}) => {
|
|
6411
|
+
if (ssoRedirectInFlight) {
|
|
6412
|
+
return;
|
|
6413
|
+
}
|
|
6414
|
+
ssoRedirectInFlight = true;
|
|
6415
|
+
try {
|
|
6416
|
+
await __redirectToSsoForTenantNow({
|
|
6417
|
+
tenantId,
|
|
6418
|
+
address
|
|
6419
|
+
});
|
|
6420
|
+
} finally {
|
|
6421
|
+
ssoRedirectInFlight = false;
|
|
6422
|
+
}
|
|
6423
|
+
};
|
|
6424
|
+
const __redirectToSsoForTenantNow = async ({
|
|
6425
|
+
tenantId,
|
|
6426
|
+
address
|
|
6427
|
+
}) => {
|
|
6428
|
+
var _store$root$urlStrate;
|
|
6429
|
+
// the login box shows login's "redirecting to SSO" step instead of the screen that was refused (its spinner and
|
|
6430
|
+
// a previous error)
|
|
6431
|
+
setLoginState({
|
|
6432
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.redirectToSSO,
|
|
6433
|
+
loading: false,
|
|
6434
|
+
error: undefined
|
|
6435
|
+
});
|
|
6398
6436
|
// on an auth page (login, tenant chooser, social / magic link / SSO callback) keep the destination the login
|
|
6399
6437
|
// already saved: the page itself is not one to come back to
|
|
6400
|
-
const
|
|
6401
|
-
|
|
6402
|
-
const isOnAuthPage = Object.values(authRoutes).some(route => typeof route === 'string' && !!route && window.location.pathname.endsWith(route));
|
|
6438
|
+
const urlStrategy = (_store$root$urlStrate = store.root.urlStrategy) != null ? _store$root$urlStrate : 'path';
|
|
6439
|
+
const isOnAuthPage = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isOnAuthPageRoute)(urlStrategy, store.auth.routes);
|
|
6403
6440
|
if (!isOnAuthPage) {
|
|
6404
|
-
(0,
|
|
6441
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_6__.setAfterAuthRedirectUrlForStepUp)(urlStrategy);
|
|
6405
6442
|
}
|
|
6406
6443
|
if (store.auth.hostedLoginBox) {
|
|
6407
6444
|
var _window$localStorage;
|
|
6408
6445
|
// as loginWithRedirect does, but the SSO tenant wins over the custom login tenant
|
|
6409
|
-
(_window$localStorage = window.localStorage) == null ? void 0 : _window$localStorage.removeItem(
|
|
6446
|
+
(_window$localStorage = window.localStorage) == null ? void 0 : _window$localStorage.removeItem(_StepUpState_consts__WEBPACK_IMPORTED_MODULE_7__.SHOULD_STEP_UP_KEY);
|
|
6410
6447
|
await actions.__requestHostedLoginAuthorize({
|
|
6411
6448
|
prompt: 'login',
|
|
6412
6449
|
tenantId
|
|
@@ -6415,9 +6452,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6415
6452
|
});
|
|
6416
6453
|
return;
|
|
6417
6454
|
}
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6455
|
+
// as login does for an OIDC SSO page without redirect_uri; the refusal has no idpType, but an OIDC page asks for a code
|
|
6456
|
+
let ssoRedirectUrl = address;
|
|
6457
|
+
if (/[?&]response_type=code(&|$)/.test(address) && !address.includes('redirect_uri')) {
|
|
6458
|
+
ssoRedirectUrl += `&redirect_uri=${window.location.origin}${store.auth.routes.oidcRedirectUrl}`;
|
|
6459
|
+
}
|
|
6460
|
+
redirectToFullPage(ssoRedirectUrl);
|
|
6421
6461
|
};
|
|
6422
6462
|
|
|
6423
6463
|
/**
|
|
@@ -6427,7 +6467,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6427
6467
|
* @protected
|
|
6428
6468
|
*/
|
|
6429
6469
|
const __redirectToSsoIfRequired = async e => {
|
|
6430
|
-
|
|
6470
|
+
var _e$errorContext;
|
|
6471
|
+
if (!(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.isEnforceSsoOnTenantAccessEnabled)(store.root.appName) || !(0,_helpers__WEBPACK_IMPORTED_MODULE_9__.isSsoEnforcementError)(e) || !((_e$errorContext = e.errorContext) != null && _e$errorContext.ssoRequired)) {
|
|
6431
6472
|
return false;
|
|
6432
6473
|
}
|
|
6433
6474
|
await __redirectToSsoForTenant(e.errorContext);
|
|
@@ -6442,7 +6483,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6442
6483
|
*/
|
|
6443
6484
|
const __handleSsoEnforcementRefreshError = async (e, isSsoEnforcementRetry, refreshForTenant) => {
|
|
6444
6485
|
var _store$auth$user;
|
|
6445
|
-
if (!(0,
|
|
6486
|
+
if (!(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.isEnforceSsoOnTenantAccessEnabled)(store.root.appName) || !(0,_helpers__WEBPACK_IMPORTED_MODULE_9__.isSsoEnforcementError)(e)) {
|
|
6446
6487
|
return false;
|
|
6447
6488
|
}
|
|
6448
6489
|
if (await __redirectToSsoIfRequired(e)) {
|
|
@@ -6453,7 +6494,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6453
6494
|
return false;
|
|
6454
6495
|
}
|
|
6455
6496
|
if (contextHolder.isSessionPerTenantEnabled()) {
|
|
6456
|
-
(0,
|
|
6497
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.setTabTenantInSessionStorage)(currentTenantId);
|
|
6457
6498
|
}
|
|
6458
6499
|
await refreshForTenant(currentTenantId);
|
|
6459
6500
|
return true;
|
|
@@ -6475,8 +6516,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6475
6516
|
return;
|
|
6476
6517
|
}
|
|
6477
6518
|
try {
|
|
6478
|
-
const tabTenantId = tenantId != null ? tenantId : (0,
|
|
6479
|
-
const body = (0,
|
|
6519
|
+
const tabTenantId = tenantId != null ? tenantId : (0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.getTabTenantFromSessionStorage)(store.root.appName);
|
|
6520
|
+
const body = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
6480
6521
|
grant_type: 'refresh_token',
|
|
6481
6522
|
refresh_token: user == null ? void 0 : user.refreshToken
|
|
6482
6523
|
}, tabTenantId ? {
|
|
@@ -6484,7 +6525,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6484
6525
|
} : {});
|
|
6485
6526
|
const response = await api.auth.exchangeOAuthTokensV2(body);
|
|
6486
6527
|
const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
|
|
6487
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
6528
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, response, {
|
|
6488
6529
|
user: updatedUser
|
|
6489
6530
|
}), {
|
|
6490
6531
|
isAuthenticated: true
|
|
@@ -6527,8 +6568,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6527
6568
|
user,
|
|
6528
6569
|
tenants = [],
|
|
6529
6570
|
activeTenant
|
|
6530
|
-
} = await (0,
|
|
6531
|
-
if ((0,
|
|
6571
|
+
} = await (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.refreshTokenWithRetry)(() => api.auth.refreshTokenV3());
|
|
6572
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
6532
6573
|
const mfaRequiredState = await actions.getMfaRequiredState(user);
|
|
6533
6574
|
actions.setAuthState(mfaRequiredState);
|
|
6534
6575
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -6547,9 +6588,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6547
6588
|
tenants,
|
|
6548
6589
|
activeTenant
|
|
6549
6590
|
}, {
|
|
6550
|
-
loginState: (0,
|
|
6591
|
+
loginState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, loginState, {
|
|
6551
6592
|
quickLoginToRegister,
|
|
6552
|
-
flow: shouldNavigateToRegisterQuickLogin ?
|
|
6593
|
+
flow: shouldNavigateToRegisterQuickLogin ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.RegisterQuickLogin : _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login
|
|
6553
6594
|
}),
|
|
6554
6595
|
isAuthenticated: true
|
|
6555
6596
|
});
|
|
@@ -6558,8 +6599,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6558
6599
|
});
|
|
6559
6600
|
}
|
|
6560
6601
|
} catch (e) {
|
|
6561
|
-
// a refused identity refresh has already used up the refresh token: no retry, only the SSO redirect
|
|
6562
|
-
|
|
6602
|
+
// a refused identity refresh has already used up the refresh token: no retry, only the SSO redirect, except on
|
|
6603
|
+
// the OIDC callback, where the page itself completes the OIDC login
|
|
6604
|
+
if ((0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.isEnforceSsoOnTenantAccessEnabled)(store.root.appName) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isOnOidcCallbackRoute)(store) && (await __redirectToSsoIfRequired(e))) {
|
|
6563
6605
|
return;
|
|
6564
6606
|
}
|
|
6565
6607
|
contextHolder.setAccessToken(null);
|
|
@@ -6577,12 +6619,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6577
6619
|
} = {}) => {
|
|
6578
6620
|
try {
|
|
6579
6621
|
const authApi = api.auth;
|
|
6580
|
-
const response = await (0,
|
|
6622
|
+
const response = await (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.refreshTokenWithRetry)(async () => {
|
|
6581
6623
|
const tokens = await _toolkit__WEBPACK_IMPORTED_MODULE_11__["default"].getTokens();
|
|
6582
6624
|
return await authApi.silentOAuthRefreshTokenV3(tokens);
|
|
6583
6625
|
});
|
|
6584
6626
|
const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
|
|
6585
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
6627
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, response, {
|
|
6586
6628
|
user: updatedUser
|
|
6587
6629
|
}), {
|
|
6588
6630
|
isAuthenticated: true
|
|
@@ -6606,6 +6648,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6606
6648
|
|
|
6607
6649
|
/** @protected */
|
|
6608
6650
|
const __refreshToken = async () => {
|
|
6651
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.restoreTabTenantUnlessSsoCallback)(store);
|
|
6609
6652
|
if (_toolkit__WEBPACK_IMPORTED_MODULE_11__["default"].isGetTokensAvailable()) {
|
|
6610
6653
|
await __refreshTokenWithNativeTokens();
|
|
6611
6654
|
return;
|
|
@@ -6633,7 +6676,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6633
6676
|
const oldEntitlements = (_store$auth$user2 = store.auth.user) == null ? void 0 : _store$auth$user2.entitlements;
|
|
6634
6677
|
if ((0,_toolkit__WEBPACK_IMPORTED_MODULE_12__.isEntitlementsDeeplyEqual)(oldEntitlements, updatedUser == null ? void 0 : updatedUser.entitlements)) {
|
|
6635
6678
|
// set the previous entitlements object
|
|
6636
|
-
return (0,
|
|
6679
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, updatedUser, {
|
|
6637
6680
|
entitlements: oldEntitlements
|
|
6638
6681
|
});
|
|
6639
6682
|
}
|
|
@@ -6725,7 +6768,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6725
6768
|
onRedirectTo,
|
|
6726
6769
|
routes
|
|
6727
6770
|
} = store.auth;
|
|
6728
|
-
if ((0,
|
|
6771
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
6729
6772
|
const mfaRequiredState = await actions.getMfaRequiredState(user, _constants__WEBPACK_IMPORTED_MODULE_15__.DEFAULT_RETRY_CONFIG, true);
|
|
6730
6773
|
actions.setAuthState(mfaRequiredState);
|
|
6731
6774
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -6798,11 +6841,11 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6798
6841
|
callback,
|
|
6799
6842
|
error
|
|
6800
6843
|
} = _ref3,
|
|
6801
|
-
body = (0,
|
|
6844
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref3, _excluded);
|
|
6802
6845
|
const publicPolicy = store.auth.securityPolicyState.publicPolicy.policy;
|
|
6803
6846
|
if (!(publicPolicy != null && publicPolicy.authStrategy)) {
|
|
6804
6847
|
actions.setLoginState({
|
|
6805
|
-
step:
|
|
6848
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithPassword,
|
|
6806
6849
|
loading: false
|
|
6807
6850
|
});
|
|
6808
6851
|
callback == null ? void 0 : callback();
|
|
@@ -6810,20 +6853,20 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6810
6853
|
}
|
|
6811
6854
|
if ((publicPolicy == null ? void 0 : publicPolicy.authStrategy) === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.EmailAndPassword) {
|
|
6812
6855
|
actions.setLoginState({
|
|
6813
|
-
step:
|
|
6856
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithPassword,
|
|
6814
6857
|
loading: false
|
|
6815
6858
|
});
|
|
6816
6859
|
callback == null ? void 0 : callback();
|
|
6817
6860
|
} else if ([_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.MagicLink, _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.Code, _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.SmsCode].includes(publicPolicy == null ? void 0 : publicPolicy.authStrategy)) {
|
|
6818
|
-
await actions.passwordlessPreLogin((0,
|
|
6861
|
+
await actions.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, body, {
|
|
6819
6862
|
type: publicPolicy == null ? void 0 : publicPolicy.authStrategy,
|
|
6820
6863
|
callback
|
|
6821
6864
|
}));
|
|
6822
6865
|
} else {
|
|
6823
6866
|
actions.setLoginState({
|
|
6824
|
-
step:
|
|
6867
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithPassword,
|
|
6825
6868
|
loading: false,
|
|
6826
|
-
error: (0,
|
|
6869
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(error)
|
|
6827
6870
|
});
|
|
6828
6871
|
callback == null ? void 0 : callback();
|
|
6829
6872
|
}
|
|
@@ -6846,7 +6889,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6846
6889
|
};
|
|
6847
6890
|
const scheduleSsoRedirect = (ssoRedirectUrl, attempt) => {
|
|
6848
6891
|
setTimeout(() => {
|
|
6849
|
-
if (attempt === latestPreLoginAttempt && store.auth.loginState.step ===
|
|
6892
|
+
if (attempt === latestPreLoginAttempt && store.auth.loginState.step === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.redirectToSSO) {
|
|
6850
6893
|
redirectToFullPage(ssoRedirectUrl);
|
|
6851
6894
|
}
|
|
6852
6895
|
}, SSO_REDIRECT_DELAY_MS);
|
|
@@ -6871,7 +6914,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6871
6914
|
});
|
|
6872
6915
|
try {
|
|
6873
6916
|
const tenantId = (0,_helpers__WEBPACK_IMPORTED_MODULE_19__.getSearchParam)(_helpers__WEBPACK_IMPORTED_MODULE_19__.TENANT_ID_PARAM_KEY);
|
|
6874
|
-
const preLoginResult = await api.auth.preLoginV2((0,
|
|
6917
|
+
const preLoginResult = await api.auth.preLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
|
|
6875
6918
|
email
|
|
6876
6919
|
} : {}, username ? {
|
|
6877
6920
|
username
|
|
@@ -6909,14 +6952,14 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6909
6952
|
callback == null ? void 0 : callback();
|
|
6910
6953
|
} else {
|
|
6911
6954
|
setLoginState({
|
|
6912
|
-
step:
|
|
6955
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.redirectToSSO,
|
|
6913
6956
|
loading: false,
|
|
6914
6957
|
ssoRedirectUrl
|
|
6915
6958
|
});
|
|
6916
6959
|
scheduleSsoRedirect(ssoRedirectUrl, attempt);
|
|
6917
6960
|
}
|
|
6918
6961
|
} else {
|
|
6919
|
-
await ssoPreloginFailed((0,
|
|
6962
|
+
await ssoPreloginFailed((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, username ? {
|
|
6920
6963
|
username
|
|
6921
6964
|
} : {
|
|
6922
6965
|
email: email != null ? email : ''
|
|
@@ -6927,7 +6970,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6927
6970
|
}));
|
|
6928
6971
|
}
|
|
6929
6972
|
} catch (e) {
|
|
6930
|
-
await ssoPreloginFailed((0,
|
|
6973
|
+
await ssoPreloginFailed((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, username ? {
|
|
6931
6974
|
username
|
|
6932
6975
|
} : {
|
|
6933
6976
|
email: email != null ? email : ''
|
|
@@ -6974,7 +7017,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6974
7017
|
onRedirectTo(routes.authenticatedUrl);
|
|
6975
7018
|
}, 1000);
|
|
6976
7019
|
setLoginState({
|
|
6977
|
-
step:
|
|
7020
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithSSOFailed,
|
|
6978
7021
|
loading: false
|
|
6979
7022
|
});
|
|
6980
7023
|
}
|
|
@@ -6996,7 +7039,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6996
7039
|
user,
|
|
6997
7040
|
tenants = [],
|
|
6998
7041
|
activeTenant
|
|
6999
|
-
} = await api.auth.loginv2((0,
|
|
7042
|
+
} = await api.auth.loginv2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
|
|
7000
7043
|
email
|
|
7001
7044
|
} : {}, username ? {
|
|
7002
7045
|
username
|
|
@@ -7009,7 +7052,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7009
7052
|
onRedirectTo,
|
|
7010
7053
|
routes
|
|
7011
7054
|
} = store.auth;
|
|
7012
|
-
if ((0,
|
|
7055
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7013
7056
|
const mfaRequiredState = await actions.getMfaRequiredState(user, _constants__WEBPACK_IMPORTED_MODULE_15__.DEFAULT_RETRY_CONFIG, true, email);
|
|
7014
7057
|
actions.setAuthState(mfaRequiredState);
|
|
7015
7058
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7017,9 +7060,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7017
7060
|
});
|
|
7018
7061
|
} else {
|
|
7019
7062
|
const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
|
|
7020
|
-
if ((0,
|
|
7063
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isResetPasswordRequired)(user, store.root.appName)) {
|
|
7021
7064
|
setLoginState({
|
|
7022
|
-
step:
|
|
7065
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationExpired,
|
|
7023
7066
|
loading: false,
|
|
7024
7067
|
resetPasswordToken: user.resetPasswordToken,
|
|
7025
7068
|
userId: user.userId
|
|
@@ -7042,7 +7085,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7042
7085
|
loading: false,
|
|
7043
7086
|
error: undefined,
|
|
7044
7087
|
mfaToken: user.mfaToken,
|
|
7045
|
-
step: loginState.flow ===
|
|
7088
|
+
step: loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.success : loginState.step,
|
|
7046
7089
|
tenants,
|
|
7047
7090
|
tenantsLoading: true,
|
|
7048
7091
|
isBreachedPassword: user.isBreachedPassword,
|
|
@@ -7064,10 +7107,10 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7064
7107
|
};
|
|
7065
7108
|
(0,_helpers__WEBPACK_IMPORTED_MODULE_22__.reportGTMEvent)(_helpers__WEBPACK_IMPORTED_MODULE_22__.GTMEventAction.LOGIN_COMPLETED, loginCompletedPayload);
|
|
7066
7109
|
}
|
|
7067
|
-
if (loginState.flow ===
|
|
7110
|
+
if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login) {
|
|
7068
7111
|
if (securityCenterLoginFlows && user.isBreachedPassword && !isAuthenticated) {
|
|
7069
7112
|
setLoginState({
|
|
7070
|
-
step:
|
|
7113
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.breachedPassword,
|
|
7071
7114
|
loading: false
|
|
7072
7115
|
});
|
|
7073
7116
|
} else {
|
|
@@ -7075,14 +7118,14 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7075
7118
|
const shouldShowPasswordRotationPrompt = (0,_helpers__WEBPACK_IMPORTED_MODULE_19__.shouldShowPasswordRotationPromptFunc)(user);
|
|
7076
7119
|
if (shouldShowPasswordRotationPrompt) {
|
|
7077
7120
|
setLoginState({
|
|
7078
|
-
step:
|
|
7121
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationNotification,
|
|
7079
7122
|
loading: false
|
|
7080
7123
|
});
|
|
7081
7124
|
} else {
|
|
7082
7125
|
const shouldShowPromptPasskeys = await actions.__shouldShowPromptPasskeys();
|
|
7083
7126
|
if (shouldShowPromptPasskeys) {
|
|
7084
7127
|
setLoginState({
|
|
7085
|
-
step:
|
|
7128
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.promptPasskeys,
|
|
7086
7129
|
loading: false
|
|
7087
7130
|
});
|
|
7088
7131
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7113,7 +7156,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7113
7156
|
callback == null ? void 0 : callback(false, e);
|
|
7114
7157
|
setLoginState({
|
|
7115
7158
|
email,
|
|
7116
|
-
error: (0,
|
|
7159
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7117
7160
|
loading: false
|
|
7118
7161
|
});
|
|
7119
7162
|
}
|
|
@@ -7122,7 +7165,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7122
7165
|
keepHostedOAuthState = false
|
|
7123
7166
|
} = {}) => {
|
|
7124
7167
|
if (contextHolder.isSessionPerTenantEnabled()) {
|
|
7125
|
-
(0,
|
|
7168
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.removeTabTenantFromSessionStorage)();
|
|
7126
7169
|
}
|
|
7127
7170
|
// Step-up re-login goes through silentLogout but still needs the hosted OAuth state to finish the client flow.
|
|
7128
7171
|
if (!keepHostedOAuthState) {
|
|
@@ -7155,7 +7198,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7155
7198
|
} catch {
|
|
7156
7199
|
/* empty */
|
|
7157
7200
|
}
|
|
7158
|
-
const isStepUpInProgress = !!((_window2 = window) != null && _window2.localStorage.getItem(
|
|
7201
|
+
const isStepUpInProgress = !!((_window2 = window) != null && _window2.localStorage.getItem(_StepUpState_consts__WEBPACK_IMPORTED_MODULE_7__.SHOULD_STEP_UP_KEY));
|
|
7159
7202
|
clearLogoutLocalState({
|
|
7160
7203
|
keepHostedOAuthState: isStepUpInProgress
|
|
7161
7204
|
});
|
|
@@ -7174,7 +7217,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7174
7217
|
setLoginState({
|
|
7175
7218
|
loading: false,
|
|
7176
7219
|
error: undefined,
|
|
7177
|
-
step:
|
|
7220
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.preLogin
|
|
7178
7221
|
});
|
|
7179
7222
|
actions.setAuthState({
|
|
7180
7223
|
user: undefined,
|
|
@@ -7184,7 +7227,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7184
7227
|
} catch (e) {
|
|
7185
7228
|
var _payload$callback5;
|
|
7186
7229
|
setLoginState({
|
|
7187
|
-
error: (0,
|
|
7230
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7188
7231
|
loading: false
|
|
7189
7232
|
});
|
|
7190
7233
|
(_payload$callback5 = payload.callback) == null ? void 0 : _payload$callback5.call(payload, false, e);
|
|
@@ -7194,7 +7237,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7194
7237
|
const {
|
|
7195
7238
|
callback
|
|
7196
7239
|
} = _payload,
|
|
7197
|
-
payload = (0,
|
|
7240
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded2);
|
|
7198
7241
|
try {
|
|
7199
7242
|
setLoginState({
|
|
7200
7243
|
loading: true
|
|
@@ -7202,11 +7245,11 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7202
7245
|
|
|
7203
7246
|
// TODO: fix @frontegg/rest-api return value
|
|
7204
7247
|
// @ts-ignore
|
|
7205
|
-
const preloginRes = await api.auth.passwordlessPreLogin((0,
|
|
7248
|
+
const preloginRes = await api.auth.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
|
|
7206
7249
|
type: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.SmsCode
|
|
7207
7250
|
}));
|
|
7208
7251
|
setLoginState({
|
|
7209
|
-
step:
|
|
7252
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithQuickSmsOtc,
|
|
7210
7253
|
loading: false,
|
|
7211
7254
|
phoneNumber: preloginRes == null ? void 0 : preloginRes.phoneNumber,
|
|
7212
7255
|
error: undefined
|
|
@@ -7214,7 +7257,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7214
7257
|
callback == null ? void 0 : callback(true);
|
|
7215
7258
|
} catch (e) {
|
|
7216
7259
|
setLoginState({
|
|
7217
|
-
error: (0,
|
|
7260
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7218
7261
|
loading: false
|
|
7219
7262
|
});
|
|
7220
7263
|
callback == null ? void 0 : callback(false, e);
|
|
@@ -7224,7 +7267,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7224
7267
|
const {
|
|
7225
7268
|
callback
|
|
7226
7269
|
} = _payload,
|
|
7227
|
-
payload = (0,
|
|
7270
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded3);
|
|
7228
7271
|
try {
|
|
7229
7272
|
setLoginState({
|
|
7230
7273
|
loading: true
|
|
@@ -7234,13 +7277,13 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7234
7277
|
phoneNumber: payload.phoneNumber,
|
|
7235
7278
|
loading: false,
|
|
7236
7279
|
changePhoneId: changePhoneRes.changePhoneId,
|
|
7237
|
-
step:
|
|
7280
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithQuickSmsOtc,
|
|
7238
7281
|
error: undefined
|
|
7239
7282
|
});
|
|
7240
7283
|
callback == null ? void 0 : callback(true);
|
|
7241
7284
|
} catch (e) {
|
|
7242
7285
|
setLoginState({
|
|
7243
|
-
error: (0,
|
|
7286
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7244
7287
|
loading: false
|
|
7245
7288
|
});
|
|
7246
7289
|
}
|
|
@@ -7249,7 +7292,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7249
7292
|
const {
|
|
7250
7293
|
callback
|
|
7251
7294
|
} = _payload,
|
|
7252
|
-
payload = (0,
|
|
7295
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded4);
|
|
7253
7296
|
try {
|
|
7254
7297
|
setLoginState({
|
|
7255
7298
|
loading: true
|
|
@@ -7261,7 +7304,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7261
7304
|
callback == null ? void 0 : callback(true);
|
|
7262
7305
|
} catch (e) {
|
|
7263
7306
|
setLoginState({
|
|
7264
|
-
error: (0,
|
|
7307
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7265
7308
|
loading: false
|
|
7266
7309
|
});
|
|
7267
7310
|
}
|
|
@@ -7270,7 +7313,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7270
7313
|
const {
|
|
7271
7314
|
callback
|
|
7272
7315
|
} = _payload,
|
|
7273
|
-
payload = (0,
|
|
7316
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded5);
|
|
7274
7317
|
try {
|
|
7275
7318
|
var _username;
|
|
7276
7319
|
setLoginState({
|
|
@@ -7286,7 +7329,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7286
7329
|
}
|
|
7287
7330
|
// TODO: [Typescript 4.8] fix @frontegg/rest-api return value
|
|
7288
7331
|
// @ts-ignore
|
|
7289
|
-
const preloginRes = await api.auth.passwordlessPreLogin((0,
|
|
7332
|
+
const preloginRes = await api.auth.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
|
|
7290
7333
|
email,
|
|
7291
7334
|
username: (_username = username) != null ? _username : ''
|
|
7292
7335
|
}));
|
|
@@ -7303,7 +7346,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7303
7346
|
callback == null ? void 0 : callback();
|
|
7304
7347
|
} catch (e) {
|
|
7305
7348
|
setLoginState({
|
|
7306
|
-
error: (0,
|
|
7349
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7307
7350
|
loading: false
|
|
7308
7351
|
});
|
|
7309
7352
|
callback == null ? void 0 : callback(null, e);
|
|
@@ -7314,7 +7357,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7314
7357
|
callback,
|
|
7315
7358
|
events
|
|
7316
7359
|
} = _payload,
|
|
7317
|
-
payload = (0,
|
|
7360
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded6);
|
|
7318
7361
|
try {
|
|
7319
7362
|
setLoginState({
|
|
7320
7363
|
loading: true
|
|
@@ -7328,7 +7371,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7328
7371
|
routes,
|
|
7329
7372
|
onRedirectTo
|
|
7330
7373
|
} = store.auth;
|
|
7331
|
-
if ((0,
|
|
7374
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7332
7375
|
const mfaRequiredState = await actions.getMfaRequiredState(user);
|
|
7333
7376
|
actions.setAuthState(mfaRequiredState);
|
|
7334
7377
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7373,11 +7416,11 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7373
7416
|
actions.setAuthState({
|
|
7374
7417
|
isLoading: false
|
|
7375
7418
|
});
|
|
7376
|
-
if (loginState.flow ===
|
|
7419
|
+
if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login) {
|
|
7377
7420
|
const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
|
|
7378
7421
|
if (shouldShowPrompt) {
|
|
7379
7422
|
actions.setLoginState({
|
|
7380
|
-
step:
|
|
7423
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.promptPasskeys,
|
|
7381
7424
|
loading: false
|
|
7382
7425
|
});
|
|
7383
7426
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7389,7 +7432,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7389
7432
|
});
|
|
7390
7433
|
if (_payload.type === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.MagicLink) {
|
|
7391
7434
|
actions.setLoginState({
|
|
7392
|
-
step:
|
|
7435
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.magicLinkPostLoginSuccess,
|
|
7393
7436
|
loading: false
|
|
7394
7437
|
});
|
|
7395
7438
|
await (0,_helpers__WEBPACK_IMPORTED_MODULE_14__.delay)(5000);
|
|
@@ -7409,7 +7452,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7409
7452
|
return;
|
|
7410
7453
|
}
|
|
7411
7454
|
setLoginState({
|
|
7412
|
-
error: (0,
|
|
7455
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e, 'Failed to authenticate')
|
|
7413
7456
|
});
|
|
7414
7457
|
callback == null ? void 0 : callback(null, e);
|
|
7415
7458
|
} finally {
|
|
@@ -7433,7 +7476,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7433
7476
|
});
|
|
7434
7477
|
} catch (e) {
|
|
7435
7478
|
setLoginState({
|
|
7436
|
-
inviteTokenError: (0,
|
|
7479
|
+
inviteTokenError: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e, `We couldn't verify your invitation`)
|
|
7437
7480
|
});
|
|
7438
7481
|
} finally {
|
|
7439
7482
|
setLoginState({
|
|
@@ -7445,7 +7488,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7445
7488
|
const {
|
|
7446
7489
|
callback
|
|
7447
7490
|
} = payload,
|
|
7448
|
-
body = (0,
|
|
7491
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded7);
|
|
7449
7492
|
try {
|
|
7450
7493
|
var _options$allowCredent;
|
|
7451
7494
|
actions.setPasskeysState({
|
|
@@ -7460,7 +7503,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7460
7503
|
options
|
|
7461
7504
|
} = await api.auth.webAuthnPreLogin(body);
|
|
7462
7505
|
options.challenge = (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(options.challenge);
|
|
7463
|
-
options.allowCredentials = (_options$allowCredent = options.allowCredentials) == null ? void 0 : _options$allowCredent.map(credentials => (0,
|
|
7506
|
+
options.allowCredentials = (_options$allowCredent = options.allowCredentials) == null ? void 0 : _options$allowCredent.map(credentials => (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, credentials, {
|
|
7464
7507
|
id: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(credentials.id)
|
|
7465
7508
|
}));
|
|
7466
7509
|
setLoginState({
|
|
@@ -7469,7 +7512,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7469
7512
|
callback == null ? void 0 : callback(options);
|
|
7470
7513
|
} catch (e) {
|
|
7471
7514
|
setLoginState({
|
|
7472
|
-
error: (0,
|
|
7515
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7473
7516
|
});
|
|
7474
7517
|
callback == null ? void 0 : callback(null);
|
|
7475
7518
|
} finally {
|
|
@@ -7485,7 +7528,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7485
7528
|
const {
|
|
7486
7529
|
callback
|
|
7487
7530
|
} = payload,
|
|
7488
|
-
body = (0,
|
|
7531
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded8);
|
|
7489
7532
|
try {
|
|
7490
7533
|
var _publicKey$response$u;
|
|
7491
7534
|
actions.setPasskeysState({
|
|
@@ -7495,8 +7538,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7495
7538
|
loading: true
|
|
7496
7539
|
});
|
|
7497
7540
|
const publicKey = (0,_helpers__WEBPACK_IMPORTED_MODULE_25__.publicKeyCredentialToJSON)(body.publicKey);
|
|
7498
|
-
const _await$api$auth$webAu = await api.auth.webAuthnPostLoginV2((0,
|
|
7499
|
-
response: (0,
|
|
7541
|
+
const _await$api$auth$webAu = await api.auth.webAuthnPostLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, publicKey, {
|
|
7542
|
+
response: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, publicKey.response, {
|
|
7500
7543
|
userHandle: (_publicKey$response$u = publicKey.response.userHandle) != null ? _publicKey$response$u : undefined
|
|
7501
7544
|
}),
|
|
7502
7545
|
recaptchaToken: body.recaptchaToken,
|
|
@@ -7505,8 +7548,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7505
7548
|
{
|
|
7506
7549
|
user
|
|
7507
7550
|
} = _await$api$auth$webAu,
|
|
7508
|
-
rest = (0,
|
|
7509
|
-
if ((0,
|
|
7551
|
+
rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_await$api$auth$webAu, _excluded9);
|
|
7552
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7510
7553
|
const {
|
|
7511
7554
|
routes,
|
|
7512
7555
|
onRedirectTo
|
|
@@ -7521,7 +7564,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7521
7564
|
if (user.id) {
|
|
7522
7565
|
localStorage.setItem('userId', user.id);
|
|
7523
7566
|
}
|
|
7524
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
7567
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
7525
7568
|
user
|
|
7526
7569
|
}, rest), {
|
|
7527
7570
|
isAuthenticated: true
|
|
@@ -7548,7 +7591,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7548
7591
|
return;
|
|
7549
7592
|
}
|
|
7550
7593
|
setLoginState({
|
|
7551
|
-
error: (0,
|
|
7594
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7552
7595
|
});
|
|
7553
7596
|
callback == null ? void 0 : callback(null);
|
|
7554
7597
|
} finally {
|
|
@@ -7579,7 +7622,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7579
7622
|
callback == null ? void 0 : callback(options);
|
|
7580
7623
|
} catch (e) {
|
|
7581
7624
|
setLoginState({
|
|
7582
|
-
error: (0,
|
|
7625
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7583
7626
|
});
|
|
7584
7627
|
callback == null ? void 0 : callback(null);
|
|
7585
7628
|
} finally {
|
|
@@ -7592,7 +7635,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7592
7635
|
const {
|
|
7593
7636
|
callback
|
|
7594
7637
|
} = payload,
|
|
7595
|
-
body = (0,
|
|
7638
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded10);
|
|
7596
7639
|
try {
|
|
7597
7640
|
setLoginState({
|
|
7598
7641
|
loading: true
|
|
@@ -7607,7 +7650,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7607
7650
|
callback == null ? void 0 : callback(true);
|
|
7608
7651
|
} catch (e) {
|
|
7609
7652
|
setLoginState({
|
|
7610
|
-
error: (0,
|
|
7653
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7611
7654
|
});
|
|
7612
7655
|
callback == null ? void 0 : callback(null);
|
|
7613
7656
|
} finally {
|
|
@@ -7657,19 +7700,19 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7657
7700
|
const {
|
|
7658
7701
|
callback
|
|
7659
7702
|
} = _payload,
|
|
7660
|
-
payload = (0,
|
|
7703
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded11);
|
|
7661
7704
|
setLoginState({
|
|
7662
7705
|
loading: true
|
|
7663
7706
|
});
|
|
7664
7707
|
try {
|
|
7665
7708
|
var _data$options$exclude;
|
|
7666
7709
|
const data = await api.auth.preEnrollMFAWebAuthnForLogin(payload);
|
|
7667
|
-
const options = (0,
|
|
7710
|
+
const options = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, data.options, {
|
|
7668
7711
|
challenge: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(data.options.challenge),
|
|
7669
|
-
user: (0,
|
|
7712
|
+
user: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, data.options.user, {
|
|
7670
7713
|
id: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(data.options.user.id)
|
|
7671
7714
|
}),
|
|
7672
|
-
excludeCredentials: (_data$options$exclude = data.options.excludeCredentials) == null ? void 0 : _data$options$exclude.map(credentials => (0,
|
|
7715
|
+
excludeCredentials: (_data$options$exclude = data.options.excludeCredentials) == null ? void 0 : _data$options$exclude.map(credentials => (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, credentials, {
|
|
7673
7716
|
id: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(credentials.id)
|
|
7674
7717
|
}))
|
|
7675
7718
|
});
|
|
@@ -7683,7 +7726,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7683
7726
|
} catch (e) {
|
|
7684
7727
|
setLoginState({
|
|
7685
7728
|
loading: false,
|
|
7686
|
-
error: (0,
|
|
7729
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7687
7730
|
});
|
|
7688
7731
|
callback == null ? void 0 : callback(null);
|
|
7689
7732
|
}
|
|
@@ -7692,13 +7735,13 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7692
7735
|
const {
|
|
7693
7736
|
callback
|
|
7694
7737
|
} = _payload,
|
|
7695
|
-
payload = (0,
|
|
7738
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded12);
|
|
7696
7739
|
setLoginState({
|
|
7697
7740
|
loading: true
|
|
7698
7741
|
});
|
|
7699
7742
|
try {
|
|
7700
7743
|
const publicKey = (0,_helpers__WEBPACK_IMPORTED_MODULE_25__.publicKeyCredentialToJSON)(payload.publicKey);
|
|
7701
|
-
const data = await api.auth.enrollMFAWebAuthnForLoginV2((0,
|
|
7744
|
+
const data = await api.auth.enrollMFAWebAuthnForLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
|
|
7702
7745
|
options: publicKey
|
|
7703
7746
|
}));
|
|
7704
7747
|
await handleEnrollMFAResponse(data);
|
|
@@ -7707,9 +7750,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7707
7750
|
});
|
|
7708
7751
|
callback == null ? void 0 : callback(true);
|
|
7709
7752
|
} catch (e) {
|
|
7753
|
+
if (await __redirectToSsoIfRequired(e)) {
|
|
7754
|
+
return;
|
|
7755
|
+
}
|
|
7710
7756
|
setLoginState({
|
|
7711
7757
|
loading: false,
|
|
7712
|
-
error: (0,
|
|
7758
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7713
7759
|
});
|
|
7714
7760
|
callback == null ? void 0 : callback(null);
|
|
7715
7761
|
}
|
|
@@ -7718,7 +7764,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7718
7764
|
const {
|
|
7719
7765
|
callback
|
|
7720
7766
|
} = _payload,
|
|
7721
|
-
payload = (0,
|
|
7767
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded13);
|
|
7722
7768
|
setLoginState({
|
|
7723
7769
|
loading: true
|
|
7724
7770
|
});
|
|
@@ -7730,9 +7776,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7730
7776
|
});
|
|
7731
7777
|
callback == null ? void 0 : callback(true);
|
|
7732
7778
|
} catch (e) {
|
|
7779
|
+
if (await __redirectToSsoIfRequired(e)) {
|
|
7780
|
+
return;
|
|
7781
|
+
}
|
|
7733
7782
|
setLoginState({
|
|
7734
7783
|
loading: false,
|
|
7735
|
-
error: (0,
|
|
7784
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7736
7785
|
});
|
|
7737
7786
|
callback == null ? void 0 : callback(null);
|
|
7738
7787
|
}
|
|
@@ -7741,7 +7790,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7741
7790
|
const {
|
|
7742
7791
|
callback
|
|
7743
7792
|
} = _payload,
|
|
7744
|
-
payload = (0,
|
|
7793
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded14);
|
|
7745
7794
|
setLoginState({
|
|
7746
7795
|
loading: true
|
|
7747
7796
|
});
|
|
@@ -7759,7 +7808,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7759
7808
|
} catch (e) {
|
|
7760
7809
|
setLoginState({
|
|
7761
7810
|
loading: false,
|
|
7762
|
-
error: (0,
|
|
7811
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7763
7812
|
});
|
|
7764
7813
|
callback == null ? void 0 : callback(null);
|
|
7765
7814
|
}
|
|
@@ -7768,7 +7817,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7768
7817
|
const {
|
|
7769
7818
|
callback
|
|
7770
7819
|
} = _payload,
|
|
7771
|
-
payload = (0,
|
|
7820
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded15);
|
|
7772
7821
|
setLoginState({
|
|
7773
7822
|
loading: true
|
|
7774
7823
|
});
|
|
@@ -7780,9 +7829,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7780
7829
|
});
|
|
7781
7830
|
callback == null ? void 0 : callback(true);
|
|
7782
7831
|
} catch (e) {
|
|
7832
|
+
if (await __redirectToSsoIfRequired(e)) {
|
|
7833
|
+
return;
|
|
7834
|
+
}
|
|
7783
7835
|
setLoginState({
|
|
7784
7836
|
loading: false,
|
|
7785
|
-
error: (0,
|
|
7837
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7786
7838
|
});
|
|
7787
7839
|
callback == null ? void 0 : callback(null);
|
|
7788
7840
|
}
|
|
@@ -7822,7 +7874,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7822
7874
|
setLoginState({
|
|
7823
7875
|
loading: false,
|
|
7824
7876
|
error: undefined,
|
|
7825
|
-
step:
|
|
7877
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.breachedPasswordSuccess
|
|
7826
7878
|
});
|
|
7827
7879
|
actions.setAuthState({
|
|
7828
7880
|
isAuthenticated: false
|
|
@@ -7830,7 +7882,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7830
7882
|
} catch (e) {
|
|
7831
7883
|
setLoginState({
|
|
7832
7884
|
loading: false,
|
|
7833
|
-
error: (0,
|
|
7885
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7834
7886
|
});
|
|
7835
7887
|
}
|
|
7836
7888
|
};
|
|
@@ -7853,8 +7905,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7853
7905
|
return;
|
|
7854
7906
|
}
|
|
7855
7907
|
try {
|
|
7856
|
-
const tabTenantId = tenantId != null ? tenantId : (0,
|
|
7857
|
-
const body = (0,
|
|
7908
|
+
const tabTenantId = tenantId != null ? tenantId : (0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.getTabTenantFromSessionStorage)(store.root.appName);
|
|
7909
|
+
const body = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
7858
7910
|
grant_type: 'refresh_token',
|
|
7859
7911
|
refresh_token: currentUser == null ? void 0 : currentUser.refreshToken
|
|
7860
7912
|
}, tabTenantId ? {
|
|
@@ -7862,7 +7914,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7862
7914
|
} : {});
|
|
7863
7915
|
const response = await api.auth.exchangeOAuthTokensV2(body);
|
|
7864
7916
|
const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
|
|
7865
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
7917
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, response, {
|
|
7866
7918
|
user: updatedUser
|
|
7867
7919
|
}), {
|
|
7868
7920
|
isAuthenticated: true
|
|
@@ -7895,8 +7947,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7895
7947
|
user,
|
|
7896
7948
|
tenants = [],
|
|
7897
7949
|
activeTenant
|
|
7898
|
-
} = await (0,
|
|
7899
|
-
if ((0,
|
|
7950
|
+
} = await (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.refreshTokenWithRetry)(() => api.auth.refreshTokenV3());
|
|
7951
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7900
7952
|
const mfaRequiredState = await actions.getMfaRequiredState(user);
|
|
7901
7953
|
actions.setAuthState(mfaRequiredState);
|
|
7902
7954
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7907,7 +7959,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7907
7959
|
const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
|
|
7908
7960
|
if (shouldShowPrompt) {
|
|
7909
7961
|
actions.setLoginState({
|
|
7910
|
-
step:
|
|
7962
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.promptPasskeys,
|
|
7911
7963
|
loading: false
|
|
7912
7964
|
});
|
|
7913
7965
|
actions.afterAuthenticationStateUpdate({
|
|
@@ -7932,9 +7984,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7932
7984
|
tenants,
|
|
7933
7985
|
activeTenant
|
|
7934
7986
|
}, {
|
|
7935
|
-
loginState: (0,
|
|
7987
|
+
loginState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, loginState, {
|
|
7936
7988
|
quickLoginToRegister,
|
|
7937
|
-
flow: shouldNavigateToRegisterQuickLogin ?
|
|
7989
|
+
flow: shouldNavigateToRegisterQuickLogin ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.RegisterQuickLogin : _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login
|
|
7938
7990
|
}),
|
|
7939
7991
|
isAuthenticated: true
|
|
7940
7992
|
});
|
|
@@ -7963,7 +8015,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7963
8015
|
await __refreshTokenEmbeddedSocialLogins();
|
|
7964
8016
|
}
|
|
7965
8017
|
};
|
|
7966
|
-
return (0,
|
|
8018
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
7967
8019
|
setLoginState,
|
|
7968
8020
|
resetLoginState,
|
|
7969
8021
|
requestAuthorize,
|
|
@@ -11116,6 +11168,9 @@ const _excluded = ["callback"],
|
|
|
11116
11168
|
}
|
|
11117
11169
|
callback == null ? void 0 : callback(mfaState.recoveryCode);
|
|
11118
11170
|
} catch (e) {
|
|
11171
|
+
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
11172
|
+
return;
|
|
11173
|
+
}
|
|
11119
11174
|
setMfaState({
|
|
11120
11175
|
loading: false,
|
|
11121
11176
|
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.errorHandler)(e)
|
|
@@ -16416,6 +16471,11 @@ const isMfaIsNotEnrolledError = error => (error == null ? void 0 : error['messag
|
|
|
16416
16471
|
callback == null ? void 0 : callback(true);
|
|
16417
16472
|
} catch (e) {
|
|
16418
16473
|
callback == null ? void 0 : callback(false);
|
|
16474
|
+
|
|
16475
|
+
// the session's tenant requires SSO: its SSO login steps the user up, instead of logging them out
|
|
16476
|
+
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
16477
|
+
return;
|
|
16478
|
+
}
|
|
16419
16479
|
await __handleStepUpError(e);
|
|
16420
16480
|
}
|
|
16421
16481
|
};
|
|
@@ -16703,9 +16763,10 @@ const getUrlDerivedStepUp = () => {
|
|
|
16703
16763
|
|
|
16704
16764
|
/**
|
|
16705
16765
|
* Set the url and query params in the local storage FRONTEGG_AFTER_AUTH_REDIRECT_URL value
|
|
16766
|
+
* @param urlStrategy 'hash' saves the route in the hash, which is the page the app shows
|
|
16706
16767
|
*/
|
|
16707
|
-
function setAfterAuthRedirectUrlForStepUp() {
|
|
16708
|
-
const encodedRedirectUrl = window.location.pathname + window.location.search;
|
|
16768
|
+
function setAfterAuthRedirectUrlForStepUp(urlStrategy = 'path') {
|
|
16769
|
+
const encodedRedirectUrl = urlStrategy === 'hash' ? window.location.hash.substring(1) || '/' : window.location.pathname + window.location.search;
|
|
16709
16770
|
window.localStorage.setItem(_constants__WEBPACK_IMPORTED_MODULE_1__.FRONTEGG_AFTER_AUTH_REDIRECT_URL, encodedRedirectUrl);
|
|
16710
16771
|
}
|
|
16711
16772
|
|
|
@@ -18480,7 +18541,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18480
18541
|
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
18481
18542
|
// the tab comes back from SSO in the target tenant, not the one the failed switch restored
|
|
18482
18543
|
if (_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.ContextHolder.for(store.root.appName).isSessionPerTenantEnabled()) {
|
|
18483
|
-
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__.
|
|
18544
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__.setTabTenantForSsoSwitch)(tenantId);
|
|
18484
18545
|
}
|
|
18485
18546
|
return;
|
|
18486
18547
|
}
|
|
@@ -18927,18 +18988,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18927
18988
|
/* harmony export */ isEntitlementsDeeplyEqual: () => (/* reexport safe */ _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_2__.isEntitlementsDeeplyEqual),
|
|
18928
18989
|
/* harmony export */ isMfaRequired: () => (/* binding */ isMfaRequired),
|
|
18929
18990
|
/* harmony export */ isOauthCallbackRoute: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isOauthCallbackRoute),
|
|
18991
|
+
/* harmony export */ isOnAuthPageRoute: () => (/* binding */ isOnAuthPageRoute),
|
|
18992
|
+
/* harmony export */ isOnOidcCallbackRoute: () => (/* binding */ isOnOidcCallbackRoute),
|
|
18930
18993
|
/* harmony export */ isResetPasswordRequired: () => (/* binding */ isResetPasswordRequired),
|
|
18931
18994
|
/* harmony export */ isSteppedUp: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.isSteppedUp),
|
|
18932
18995
|
/* harmony export */ isUsernamePayload: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isUsernamePayload),
|
|
18933
18996
|
/* harmony export */ mapMetaDataObjectToActions: () => (/* binding */ mapMetaDataObjectToActions),
|
|
18934
18997
|
/* harmony export */ prepareIdentifiersForSignup: () => (/* binding */ prepareIdentifiersForSignup),
|
|
18935
18998
|
/* harmony export */ redirectByStepUpUrl: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.redirectByStepUpUrl),
|
|
18999
|
+
/* harmony export */ restoreTabTenantUnlessSsoCallback: () => (/* binding */ restoreTabTenantUnlessSsoCallback),
|
|
18936
19000
|
/* harmony export */ setAfterAuthRedirectUrlForStepUp: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.setAfterAuthRedirectUrlForStepUp),
|
|
18937
19001
|
/* harmony export */ shouldShowPasswordRotationPromptFunc: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.shouldShowPasswordRotationPromptFunc)
|
|
18938
19002
|
/* harmony export */ });
|
|
18939
|
-
/* harmony import */ var
|
|
18940
|
-
/* harmony import */ var
|
|
19003
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
19004
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
18941
19005
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
|
|
19006
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
|
|
18942
19007
|
/* harmony import */ var _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LoginState/consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
|
|
18943
19008
|
/* harmony import */ var _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Entitlements/helpers */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
|
|
18944
19009
|
/* harmony import */ var _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginState/helpers */ "../../dist/@frontegg/redux-store/auth/LoginState/helpers.js");
|
|
@@ -18998,13 +19063,59 @@ const getUri = urlStrategy => {
|
|
|
18998
19063
|
}
|
|
18999
19064
|
}
|
|
19000
19065
|
};
|
|
19066
|
+
|
|
19067
|
+
/**
|
|
19068
|
+
* The route the app shows and the page's path. With hash routing they differ: the app's pages live in the hash, but
|
|
19069
|
+
* SAML, OIDC, social and magic link callbacks come back on the path, which is where login matches them.
|
|
19070
|
+
*/
|
|
19071
|
+
const getCurrentRoutes = urlStrategy => {
|
|
19072
|
+
const hashOrPathRoute = getUri(urlStrategy);
|
|
19073
|
+
const {
|
|
19074
|
+
pathname
|
|
19075
|
+
} = window.location;
|
|
19076
|
+
return hashOrPathRoute === pathname ? [pathname] : [hashOrPathRoute, pathname];
|
|
19077
|
+
};
|
|
19078
|
+
|
|
19079
|
+
/**
|
|
19080
|
+
* On the OIDC callback the page still has to finish the OIDC login with its code: a refresh refused before that is not
|
|
19081
|
+
* a reason to go back to the IdP, which would send the user straight back here, forever.
|
|
19082
|
+
*/
|
|
19083
|
+
const isOnOidcCallbackRoute = store => {
|
|
19084
|
+
var _store$root$urlStrate;
|
|
19085
|
+
const {
|
|
19086
|
+
oidcRedirectUrl
|
|
19087
|
+
} = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__.defaultFronteggRoutes, store.auth.routes);
|
|
19088
|
+
return !!oidcRedirectUrl && getCurrentRoutes((_store$root$urlStrate = store.root.urlStrategy) != null ? _store$root$urlStrate : 'path').some(currentRoute => currentRoute.endsWith(oidcRedirectUrl));
|
|
19089
|
+
};
|
|
19090
|
+
|
|
19091
|
+
/**
|
|
19092
|
+
* After a switch refused for SSO the tab points at the SSO tenant. Its SSO login comes back on a callback route and
|
|
19093
|
+
* keeps it; any other page load means the user didn't finish that login, so the tab goes back to its tenant.
|
|
19094
|
+
*/
|
|
19095
|
+
const restoreTabTenantUnlessSsoCallback = store => {
|
|
19096
|
+
var _store$root$urlStrate2;
|
|
19097
|
+
if (!(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_7__.isEnforceSsoOnTenantAccessEnabled)(store.root.appName) || !_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.for(store.root.appName).isSessionPerTenantEnabled()) {
|
|
19098
|
+
return;
|
|
19099
|
+
}
|
|
19100
|
+
const {
|
|
19101
|
+
samlCallbackUrl,
|
|
19102
|
+
oidcRedirectUrl,
|
|
19103
|
+
hostedLoginRedirectUrl
|
|
19104
|
+
} = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__.defaultFronteggRoutes, store.auth.routes);
|
|
19105
|
+
// matched like login matches its callback pages: endsWith, so a basename before the route still counts
|
|
19106
|
+
const currentRoutes = getCurrentRoutes((_store$root$urlStrate2 = store.root.urlStrategy) != null ? _store$root$urlStrate2 : 'path');
|
|
19107
|
+
const isSsoCallback = [samlCallbackUrl, oidcRedirectUrl, hostedLoginRedirectUrl].some(route => !!route && currentRoutes.some(currentRoute => currentRoute.endsWith(route)));
|
|
19108
|
+
if (!isSsoCallback) {
|
|
19109
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_7__.restoreTabTenantBeforeSsoSwitch)();
|
|
19110
|
+
}
|
|
19111
|
+
};
|
|
19001
19112
|
const prepareIdentifiersForSignup = payload => {
|
|
19002
19113
|
const {
|
|
19003
19114
|
phoneNumber,
|
|
19004
19115
|
email,
|
|
19005
19116
|
username
|
|
19006
19117
|
} = payload,
|
|
19007
|
-
finalDto = (0,
|
|
19118
|
+
finalDto = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded);
|
|
19008
19119
|
if (email != null && email.length) {
|
|
19009
19120
|
Object.assign(finalDto, {
|
|
19010
19121
|
email
|
|
@@ -19022,9 +19133,21 @@ const prepareIdentifiersForSignup = payload => {
|
|
|
19022
19133
|
}
|
|
19023
19134
|
return finalDto;
|
|
19024
19135
|
};
|
|
19136
|
+
|
|
19137
|
+
// Pages the user lands on after login or sign-up: destinations, not auth pages.
|
|
19138
|
+
const AFTER_AUTH_DESTINATION_ROUTES = ['authenticatedUrl', 'signUpSuccessUrl', 'accountSignUpSuccessUrl', 'userSignUpSuccessUrl', 'customLoginAuthenticatedUrl'];
|
|
19139
|
+
|
|
19140
|
+
/**
|
|
19141
|
+
* Whether the current route is an auth page (login, tenant chooser, social / magic link / SSO callback), not one to come
|
|
19142
|
+
* back to. Unlike isAuthRoute: after-login / sign-up destinations don't count, and endsWith lets a basename prefix it.
|
|
19143
|
+
*/
|
|
19144
|
+
const isOnAuthPageRoute = (urlStrategy, routes) => {
|
|
19145
|
+
const currentRoutes = getCurrentRoutes(urlStrategy);
|
|
19146
|
+
return Object.entries((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__.defaultFronteggRoutes, routes)).some(([name, route]) => !AFTER_AUTH_DESTINATION_ROUTES.includes(name) && typeof route === 'string' && !!route && currentRoutes.some(currentRoute => currentRoute.endsWith(route)));
|
|
19147
|
+
};
|
|
19025
19148
|
const isAuthRoute = (path, routes) => {
|
|
19026
|
-
const _defaultFronteggRoute = (0,
|
|
19027
|
-
authRoutes = (0,
|
|
19149
|
+
const _defaultFronteggRoute = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__.defaultFronteggRoutes, routes),
|
|
19150
|
+
authRoutes = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_defaultFronteggRoute, _excluded2);
|
|
19028
19151
|
return Object.values(authRoutes).includes(path);
|
|
19029
19152
|
};
|
|
19030
19153
|
|
|
@@ -21315,6 +21438,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21315
21438
|
/* harmony export */ isHostedOAuthStateExpired: () => (/* reexport safe */ _toolkit__WEBPACK_IMPORTED_MODULE_0__.isHostedOAuthStateExpired),
|
|
21316
21439
|
/* harmony export */ isMfaRequired: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isMfaRequired),
|
|
21317
21440
|
/* harmony export */ isOauthCallbackRoute: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isOauthCallbackRoute),
|
|
21441
|
+
/* harmony export */ isOnAuthPageRoute: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isOnAuthPageRoute),
|
|
21442
|
+
/* harmony export */ isOnOidcCallbackRoute: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isOnOidcCallbackRoute),
|
|
21318
21443
|
/* harmony export */ isPreferredMfaMethod: () => (/* reexport safe */ _toolkit__WEBPACK_IMPORTED_MODULE_0__.isPreferredMfaMethod),
|
|
21319
21444
|
/* harmony export */ isProxy: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.isProxy),
|
|
21320
21445
|
/* harmony export */ isResetPasswordRequired: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired),
|
|
@@ -21332,6 +21457,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21332
21457
|
/* harmony export */ refreshTokenWithRetry: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.refreshTokenWithRetry),
|
|
21333
21458
|
/* harmony export */ reportGTMEvent: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.reportGTMEvent),
|
|
21334
21459
|
/* harmony export */ resolvePreferredMfa: () => (/* reexport safe */ _toolkit__WEBPACK_IMPORTED_MODULE_0__.resolvePreferredMfa),
|
|
21460
|
+
/* harmony export */ restoreTabTenantUnlessSsoCallback: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.restoreTabTenantUnlessSsoCallback),
|
|
21335
21461
|
/* harmony export */ retry: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.retry),
|
|
21336
21462
|
/* harmony export */ retryIfNeeded: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.retryIfNeeded),
|
|
21337
21463
|
/* harmony export */ setAfterAuthRedirectUrlForStepUp: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.setAfterAuthRedirectUrlForStepUp),
|
|
@@ -21353,7 +21479,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21353
21479
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
21354
21480
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
21355
21481
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
21356
|
-
/** @license Frontegg v7.131.0-alpha.
|
|
21482
|
+
/** @license Frontegg v7.131.0-alpha.1
|
|
21357
21483
|
*
|
|
21358
21484
|
* This source code is licensed under the MIT license found in the
|
|
21359
21485
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -29806,9 +29932,11 @@ class AuditsApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_1__.BaseApiClien
|
|
|
29806
29932
|
__webpack_require__.r(__webpack_exports__);
|
|
29807
29933
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29808
29934
|
/* harmony export */ FRONTEGG_SEPARATE_TABS_BY_TENANT: () => (/* binding */ FRONTEGG_SEPARATE_TABS_BY_TENANT),
|
|
29935
|
+
/* harmony export */ FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH: () => (/* binding */ FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH),
|
|
29809
29936
|
/* harmony export */ USE_CURRENT_USER_TENANTS_V1_ENDPOINT_FF: () => (/* binding */ USE_CURRENT_USER_TENANTS_V1_ENDPOINT_FF)
|
|
29810
29937
|
/* harmony export */ });
|
|
29811
29938
|
const FRONTEGG_SEPARATE_TABS_BY_TENANT = 'FRONTEGG_SEPARATE_TABS_BY_TENANT';
|
|
29939
|
+
const FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH = 'FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH';
|
|
29812
29940
|
/**
|
|
29813
29941
|
* use current user tenant v1 feature flag
|
|
29814
29942
|
*/
|
|
@@ -29903,6 +30031,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29903
30031
|
/* harmony export */ getTabTenantFromSessionStorage: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.getTabTenantFromSessionStorage),
|
|
29904
30032
|
/* harmony export */ isEnforceSsoOnTenantAccessEnabled: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.isEnforceSsoOnTenantAccessEnabled),
|
|
29905
30033
|
/* harmony export */ removeTabTenantFromSessionStorage: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.removeTabTenantFromSessionStorage),
|
|
30034
|
+
/* harmony export */ restoreTabTenantBeforeSsoSwitch: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.restoreTabTenantBeforeSsoSwitch),
|
|
30035
|
+
/* harmony export */ setTabTenantForSsoSwitch: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.setTabTenantForSsoSwitch),
|
|
29906
30036
|
/* harmony export */ setTabTenantInSessionStorage: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.setTabTenantInSessionStorage)
|
|
29907
30037
|
/* harmony export */ });
|
|
29908
30038
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
@@ -30769,6 +30899,9 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
|
|
|
30769
30899
|
}
|
|
30770
30900
|
if (user.tenantId) {
|
|
30771
30901
|
(0,_utils__WEBPACK_IMPORTED_MODULE_5__.setTabTenantInSessionStorage)(user.tenantId);
|
|
30902
|
+
if ((0,_utils__WEBPACK_IMPORTED_MODULE_5__.isEnforceSsoOnTenantAccessEnabled)(this.appName)) {
|
|
30903
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__.clearTabTenantBeforeSsoSwitch)();
|
|
30904
|
+
}
|
|
30772
30905
|
// The server's activeTenant may reflect a different tab's tenant switch.
|
|
30773
30906
|
// Correct it to match the JWT's tenant for this tab.
|
|
30774
30907
|
const matchingTenant = currentUserTenants.tenants.find(t => t.tenantId === user.tenantId);
|
|
@@ -31021,11 +31154,14 @@ let RestrictionType;
|
|
|
31021
31154
|
"use strict";
|
|
31022
31155
|
__webpack_require__.r(__webpack_exports__);
|
|
31023
31156
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
31157
|
+
/* harmony export */ clearTabTenantBeforeSsoSwitch: () => (/* binding */ clearTabTenantBeforeSsoSwitch),
|
|
31024
31158
|
/* harmony export */ executeConditionalPromise: () => (/* binding */ executeConditionalPromise),
|
|
31025
31159
|
/* harmony export */ getCurrentUserTenantsFunction: () => (/* binding */ getCurrentUserTenantsFunction),
|
|
31026
31160
|
/* harmony export */ getTabTenantFromSessionStorage: () => (/* binding */ getTabTenantFromSessionStorage),
|
|
31027
31161
|
/* harmony export */ isEnforceSsoOnTenantAccessEnabled: () => (/* binding */ isEnforceSsoOnTenantAccessEnabled),
|
|
31028
31162
|
/* harmony export */ removeTabTenantFromSessionStorage: () => (/* binding */ removeTabTenantFromSessionStorage),
|
|
31163
|
+
/* harmony export */ restoreTabTenantBeforeSsoSwitch: () => (/* binding */ restoreTabTenantBeforeSsoSwitch),
|
|
31164
|
+
/* harmony export */ setTabTenantForSsoSwitch: () => (/* binding */ setTabTenantForSsoSwitch),
|
|
31029
31165
|
/* harmony export */ setTabTenantInSessionStorage: () => (/* binding */ setTabTenantInSessionStorage)
|
|
31030
31166
|
/* harmony export */ });
|
|
31031
31167
|
/* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ContextHolder */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
|
|
@@ -31061,6 +31197,31 @@ function isEnforceSsoOnTenantAccessEnabled(appName) {
|
|
|
31061
31197
|
function removeTabTenantFromSessionStorage() {
|
|
31062
31198
|
sessionStorage.removeItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_SEPARATE_TABS_BY_TENANT);
|
|
31063
31199
|
}
|
|
31200
|
+
|
|
31201
|
+
/**
|
|
31202
|
+
* Points the tab at the tenant whose SSO the user is sent to after a refused switch, keeping the tenant it had:
|
|
31203
|
+
* a page load that isn't the SSO login's callback puts it back (see restoreTabTenantBeforeSsoSwitch).
|
|
31204
|
+
*/
|
|
31205
|
+
function setTabTenantForSsoSwitch(tenantId) {
|
|
31206
|
+
var _sessionStorage$getIt;
|
|
31207
|
+
sessionStorage.setItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH, (_sessionStorage$getIt = sessionStorage.getItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_SEPARATE_TABS_BY_TENANT)) != null ? _sessionStorage$getIt : '');
|
|
31208
|
+
setTabTenantInSessionStorage(tenantId);
|
|
31209
|
+
}
|
|
31210
|
+
|
|
31211
|
+
/** Puts back the tab tenant of an SSO switch the user didn't finish. */
|
|
31212
|
+
function restoreTabTenantBeforeSsoSwitch() {
|
|
31213
|
+
const previousTenantId = sessionStorage.getItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH);
|
|
31214
|
+
if (previousTenantId === null) {
|
|
31215
|
+
return;
|
|
31216
|
+
}
|
|
31217
|
+
clearTabTenantBeforeSsoSwitch();
|
|
31218
|
+
previousTenantId ? setTabTenantInSessionStorage(previousTenantId) : removeTabTenantFromSessionStorage();
|
|
31219
|
+
}
|
|
31220
|
+
|
|
31221
|
+
/** The tab got a session: nothing is left to put back. */
|
|
31222
|
+
function clearTabTenantBeforeSsoSwitch() {
|
|
31223
|
+
sessionStorage.removeItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH);
|
|
31224
|
+
}
|
|
31064
31225
|
function getTabTenantFromSessionStorage(appName) {
|
|
31065
31226
|
if (!_ContextHolder__WEBPACK_IMPORTED_MODULE_3__.ContextHolder.for(appName).isSessionPerTenantEnabled()) {
|
|
31066
31227
|
return null;
|
|
@@ -32050,6 +32211,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32050
32211
|
/* harmony export */ isEnforceSsoOnTenantAccessEnabled: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.isEnforceSsoOnTenantAccessEnabled),
|
|
32051
32212
|
/* harmony export */ providersArray: () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_14__.providersArray),
|
|
32052
32213
|
/* harmony export */ removeTabTenantFromSessionStorage: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.removeTabTenantFromSessionStorage),
|
|
32214
|
+
/* harmony export */ restoreTabTenantBeforeSsoSwitch: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.restoreTabTenantBeforeSsoSwitch),
|
|
32215
|
+
/* harmony export */ setTabTenantForSsoSwitch: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.setTabTenantForSsoSwitch),
|
|
32053
32216
|
/* harmony export */ setTabTenantInSessionStorage: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.setTabTenantInSessionStorage)
|
|
32054
32217
|
/* harmony export */ });
|
|
32055
32218
|
/* harmony import */ var _auth_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth/enums */ "../../dist/@frontegg/rest-api/auth/enums.js");
|
|
@@ -32101,7 +32264,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32101
32264
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
32102
32265
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
32103
32266
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
32104
|
-
/** @license Frontegg v7.131.0-alpha.
|
|
32267
|
+
/** @license Frontegg v7.131.0-alpha.1
|
|
32105
32268
|
*
|
|
32106
32269
|
* This source code is licensed under the MIT license found in the
|
|
32107
32270
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -34956,7 +35119,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34956
35119
|
/* harmony export */ });
|
|
34957
35120
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
34958
35121
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
34959
|
-
/** @license Frontegg v7.131.0-alpha.
|
|
35122
|
+
/** @license Frontegg v7.131.0-alpha.1
|
|
34960
35123
|
*
|
|
34961
35124
|
* This source code is licensed under the MIT license found in the
|
|
34962
35125
|
* LICENSE file in the root directory of this source tree.
|