@frontegg/js 7.131.0-alpha.0 → 7.131.0-alpha.2
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 +324 -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.2'
|
|
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,16 @@ __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
|
+
// on the hosted login callback the page finishes the login with its code: fail as with the flag off
|
|
6061
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_1__.isOnLoginCodeCallbackRoute)(store)) {
|
|
6062
|
+
throw error;
|
|
6063
|
+
}
|
|
6064
|
+
// the tenant requires SSO: hosted login for that tenant, not the plain one the caller falls back to
|
|
6065
|
+
if (await actions.__redirectToSsoIfRequired(error)) {
|
|
6066
|
+
return;
|
|
6067
|
+
}
|
|
6053
6068
|
const tenantId = (_store$auth$user = store.auth.user) == null ? void 0 : _store$auth$user.tenantId;
|
|
6054
|
-
if (!(0,
|
|
6069
|
+
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
6070
|
throw error;
|
|
6056
6071
|
}
|
|
6057
6072
|
// one retry for the tenant of the current token (a cold reload has no user yet: no retry)
|
|
@@ -6084,7 +6099,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6084
6099
|
context,
|
|
6085
6100
|
urlStrategy
|
|
6086
6101
|
} = store.root;
|
|
6087
|
-
const activeUri = (0,
|
|
6102
|
+
const activeUri = (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getUri)(urlStrategy);
|
|
6088
6103
|
if (activeUri === routes.hostedLoginRedirectUrl) {
|
|
6089
6104
|
console.debug('Calling loginWithRedirect while in hostedLoginCallback route');
|
|
6090
6105
|
return;
|
|
@@ -6132,8 +6147,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6132
6147
|
if (tenantId && !forceTenantId) {
|
|
6133
6148
|
params['tenantId'] = tenantId;
|
|
6134
6149
|
}
|
|
6135
|
-
if (
|
|
6136
|
-
return
|
|
6150
|
+
if (_toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].isAvailable('closeWindow')) {
|
|
6151
|
+
return _toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].closeWindow('not_authorized');
|
|
6137
6152
|
}
|
|
6138
6153
|
const searchParams = new URLSearchParams(params);
|
|
6139
6154
|
const url = `${oauthUrl}?${searchParams.toString()}`;
|
|
@@ -6169,14 +6184,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6169
6184
|
additionalParams
|
|
6170
6185
|
} = payload != null ? payload : {};
|
|
6171
6186
|
const urlDerivedStepUp = (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.getUrlDerivedStepUp)();
|
|
6172
|
-
const isNativeStepUp =
|
|
6187
|
+
const isNativeStepUp = _toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].isGetTokensAvailable() && urlDerivedStepUp.isStepUpRequested;
|
|
6173
6188
|
if (!isNativeStepUp) {
|
|
6174
6189
|
var _localStorage2;
|
|
6175
6190
|
(_localStorage2 = localStorage) == null ? void 0 : _localStorage2.removeItem(_StepUpState_consts__WEBPACK_IMPORTED_MODULE_9__.SHOULD_STEP_UP_KEY);
|
|
6176
6191
|
}
|
|
6177
6192
|
if (firstTime) {
|
|
6178
6193
|
const urlStrategy = store.root.urlStrategy;
|
|
6179
|
-
const activeUri = (0,
|
|
6194
|
+
const activeUri = (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getUri)(urlStrategy);
|
|
6180
6195
|
actions.setAuthState({
|
|
6181
6196
|
isLoading: true
|
|
6182
6197
|
});
|
|
@@ -6189,8 +6204,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6189
6204
|
additionalParams = additionalParams || {};
|
|
6190
6205
|
additionalParams['login_direct_action'] = btoa(JSON.stringify(loginDirectAction));
|
|
6191
6206
|
}
|
|
6192
|
-
if (
|
|
6193
|
-
return
|
|
6207
|
+
if (_toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].isAvailable('requestAuthorize')) {
|
|
6208
|
+
return _toolkit__WEBPACK_IMPORTED_MODULE_2__["default"].requestAuthorize(payload);
|
|
6194
6209
|
}
|
|
6195
6210
|
if (((_additionalParams = additionalParams) == null ? void 0 : _additionalParams['prompt']) === 'login') {
|
|
6196
6211
|
return await requestHostedLoginAuthorize(additionalParams);
|
|
@@ -6306,8 +6321,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6306
6321
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6307
6322
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6308
6323
|
/* harmony export */ });
|
|
6309
|
-
/* harmony import */ var
|
|
6310
|
-
/* harmony import */ var
|
|
6324
|
+
/* 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");
|
|
6325
|
+
/* 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
6326
|
/* harmony import */ var _afterAuthNavigation_actions__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./afterAuthNavigation.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/afterAuthNavigation.actions.js");
|
|
6312
6327
|
/* harmony import */ var _handleVerifyMFAResponse_actions__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./handleVerifyMFAResponse.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/handleVerifyMFAResponse.actions.js");
|
|
6313
6328
|
/* 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 +6330,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6315
6330
|
/* harmony import */ var _mfaWithEmailCode_actions__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./mfaWithEmailCode.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/mfaWithEmailCode.actions.js");
|
|
6316
6331
|
/* harmony import */ var _mfaWithSMS_actions__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./mfaWithSMS.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/mfaWithSMS.actions.js");
|
|
6317
6332
|
/* 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
|
|
6333
|
+
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
|
|
6334
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
|
|
6335
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/refreshTokenRetry.js");
|
|
6321
6336
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
6322
6337
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/gtm.js");
|
|
6323
6338
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/encoders.js");
|
|
@@ -6325,40 +6340,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6325
6340
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../state */ "../../dist/@frontegg/redux-store/auth/LoginState/state.js");
|
|
6326
6341
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/auth/LoginState/helpers.js");
|
|
6327
6342
|
/* 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
|
|
6343
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
|
|
6329
6344
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/feature-flags/index.js");
|
|
6330
6345
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/enums.js");
|
|
6331
6346
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
|
|
6332
6347
|
/* harmony import */ var _hostedLoginAuthorize_actions__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./hostedLoginAuthorize.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/hostedLoginAuthorize.actions.js");
|
|
6333
6348
|
/* harmony import */ var _oauthStorage__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../oauthStorage */ "../../dist/@frontegg/redux-store/auth/LoginState/oauthStorage.js");
|
|
6334
|
-
/* harmony import */ var
|
|
6349
|
+
/* harmony import */ var _StepUpState_consts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../StepUpState/consts */ "../../dist/@frontegg/redux-store/auth/StepUpState/consts.js");
|
|
6335
6350
|
/* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/toolkit/FronteggNativeModule.js");
|
|
6336
6351
|
/* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
|
|
6337
6352
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
|
|
6338
6353
|
/* 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
|
|
6354
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/helpers.js");
|
|
6355
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/StepUpState/helpers.js");
|
|
6341
6356
|
/* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
|
|
6342
6357
|
/* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
|
|
6343
6358
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../constants */ "../../dist/@frontegg/redux-store/constants.js");
|
|
6344
6359
|
|
|
6345
6360
|
|
|
6346
|
-
const _excluded = ["
|
|
6347
|
-
_excluded2 = ["callback"
|
|
6361
|
+
const _excluded = ["callback", "error"],
|
|
6362
|
+
_excluded2 = ["callback"],
|
|
6348
6363
|
_excluded3 = ["callback"],
|
|
6349
6364
|
_excluded4 = ["callback"],
|
|
6350
6365
|
_excluded5 = ["callback"],
|
|
6351
|
-
_excluded6 = ["callback"],
|
|
6352
|
-
_excluded7 = ["callback"
|
|
6366
|
+
_excluded6 = ["callback", "events"],
|
|
6367
|
+
_excluded7 = ["callback"],
|
|
6353
6368
|
_excluded8 = ["callback"],
|
|
6354
|
-
_excluded9 = ["
|
|
6355
|
-
_excluded10 = ["
|
|
6369
|
+
_excluded9 = ["user"],
|
|
6370
|
+
_excluded10 = ["callback"],
|
|
6356
6371
|
_excluded11 = ["callback"],
|
|
6357
6372
|
_excluded12 = ["callback"],
|
|
6358
6373
|
_excluded13 = ["callback"],
|
|
6359
6374
|
_excluded14 = ["callback"],
|
|
6360
|
-
_excluded15 = ["callback"]
|
|
6361
|
-
_excluded16 = ["callback"];
|
|
6375
|
+
_excluded15 = ["callback"];
|
|
6362
6376
|
|
|
6363
6377
|
|
|
6364
6378
|
|
|
@@ -6391,22 +6405,49 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6391
6405
|
* Sends the user to log in through the tenant's SSO and back to the current page afterwards.
|
|
6392
6406
|
* @protected
|
|
6393
6407
|
*/
|
|
6408
|
+
// as preLogin (takeLeading): an SSO redirect started while another is in flight is dropped; the first one leaves the
|
|
6409
|
+
// page, and a second hosted one would replace the PKCE verifier the first one's callback needs
|
|
6410
|
+
let ssoRedirectInFlight = false;
|
|
6394
6411
|
const __redirectToSsoForTenant = async ({
|
|
6395
6412
|
tenantId,
|
|
6396
6413
|
address
|
|
6397
6414
|
}) => {
|
|
6415
|
+
if (ssoRedirectInFlight) {
|
|
6416
|
+
return;
|
|
6417
|
+
}
|
|
6418
|
+
ssoRedirectInFlight = true;
|
|
6419
|
+
try {
|
|
6420
|
+
await __redirectToSsoForTenantNow({
|
|
6421
|
+
tenantId,
|
|
6422
|
+
address
|
|
6423
|
+
});
|
|
6424
|
+
} finally {
|
|
6425
|
+
ssoRedirectInFlight = false;
|
|
6426
|
+
}
|
|
6427
|
+
};
|
|
6428
|
+
const __redirectToSsoForTenantNow = async ({
|
|
6429
|
+
tenantId,
|
|
6430
|
+
address
|
|
6431
|
+
}) => {
|
|
6432
|
+
var _store$root$urlStrate;
|
|
6433
|
+
// the login box shows login's "redirecting to SSO" step instead of the screen that was refused (its spinner and
|
|
6434
|
+
// a previous error)
|
|
6435
|
+
setLoginState({
|
|
6436
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.redirectToSSO,
|
|
6437
|
+
loading: false,
|
|
6438
|
+
error: undefined
|
|
6439
|
+
});
|
|
6398
6440
|
// on an auth page (login, tenant chooser, social / magic link / SSO callback) keep the destination the login
|
|
6399
6441
|
// 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));
|
|
6442
|
+
const urlStrategy = (_store$root$urlStrate = store.root.urlStrategy) != null ? _store$root$urlStrate : 'path';
|
|
6443
|
+
const isOnAuthPage = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isOnAuthPageRoute)(urlStrategy, store.auth.routes);
|
|
6403
6444
|
if (!isOnAuthPage) {
|
|
6404
|
-
(0,
|
|
6445
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_6__.setAfterAuthRedirectUrlForStepUp)(urlStrategy);
|
|
6405
6446
|
}
|
|
6406
6447
|
if (store.auth.hostedLoginBox) {
|
|
6407
6448
|
var _window$localStorage;
|
|
6408
6449
|
// as loginWithRedirect does, but the SSO tenant wins over the custom login tenant
|
|
6409
|
-
(_window$localStorage = window.localStorage) == null ? void 0 : _window$localStorage.removeItem(
|
|
6450
|
+
(_window$localStorage = window.localStorage) == null ? void 0 : _window$localStorage.removeItem(_StepUpState_consts__WEBPACK_IMPORTED_MODULE_7__.SHOULD_STEP_UP_KEY);
|
|
6410
6451
|
await actions.__requestHostedLoginAuthorize({
|
|
6411
6452
|
prompt: 'login',
|
|
6412
6453
|
tenantId
|
|
@@ -6415,9 +6456,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6415
6456
|
});
|
|
6416
6457
|
return;
|
|
6417
6458
|
}
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6459
|
+
// as login does for an OIDC SSO page without redirect_uri; the refusal has no idpType, but an OIDC page asks for a code
|
|
6460
|
+
let ssoRedirectUrl = address;
|
|
6461
|
+
if (/[?&]response_type=code(&|$)/.test(address) && !address.includes('redirect_uri')) {
|
|
6462
|
+
ssoRedirectUrl += `&redirect_uri=${window.location.origin}${store.auth.routes.oidcRedirectUrl}`;
|
|
6463
|
+
}
|
|
6464
|
+
redirectToFullPage(ssoRedirectUrl);
|
|
6421
6465
|
};
|
|
6422
6466
|
|
|
6423
6467
|
/**
|
|
@@ -6427,7 +6471,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6427
6471
|
* @protected
|
|
6428
6472
|
*/
|
|
6429
6473
|
const __redirectToSsoIfRequired = async e => {
|
|
6430
|
-
|
|
6474
|
+
var _e$errorContext;
|
|
6475
|
+
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
6476
|
return false;
|
|
6432
6477
|
}
|
|
6433
6478
|
await __redirectToSsoForTenant(e.errorContext);
|
|
@@ -6442,7 +6487,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6442
6487
|
*/
|
|
6443
6488
|
const __handleSsoEnforcementRefreshError = async (e, isSsoEnforcementRetry, refreshForTenant) => {
|
|
6444
6489
|
var _store$auth$user;
|
|
6445
|
-
|
|
6490
|
+
// on a login callback the page finishes the login with its code: log out as with the flag off, no new SSO trip
|
|
6491
|
+
if (!(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.isEnforceSsoOnTenantAccessEnabled)(store.root.appName) || !(0,_helpers__WEBPACK_IMPORTED_MODULE_9__.isSsoEnforcementError)(e) || (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isOnLoginCodeCallbackRoute)(store)) {
|
|
6446
6492
|
return false;
|
|
6447
6493
|
}
|
|
6448
6494
|
if (await __redirectToSsoIfRequired(e)) {
|
|
@@ -6453,7 +6499,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6453
6499
|
return false;
|
|
6454
6500
|
}
|
|
6455
6501
|
if (contextHolder.isSessionPerTenantEnabled()) {
|
|
6456
|
-
(0,
|
|
6502
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.setTabTenantInSessionStorage)(currentTenantId);
|
|
6457
6503
|
}
|
|
6458
6504
|
await refreshForTenant(currentTenantId);
|
|
6459
6505
|
return true;
|
|
@@ -6475,8 +6521,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6475
6521
|
return;
|
|
6476
6522
|
}
|
|
6477
6523
|
try {
|
|
6478
|
-
const tabTenantId = tenantId != null ? tenantId : (0,
|
|
6479
|
-
const body = (0,
|
|
6524
|
+
const tabTenantId = tenantId != null ? tenantId : (0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.getTabTenantFromSessionStorage)(store.root.appName);
|
|
6525
|
+
const body = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
6480
6526
|
grant_type: 'refresh_token',
|
|
6481
6527
|
refresh_token: user == null ? void 0 : user.refreshToken
|
|
6482
6528
|
}, tabTenantId ? {
|
|
@@ -6484,7 +6530,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6484
6530
|
} : {});
|
|
6485
6531
|
const response = await api.auth.exchangeOAuthTokensV2(body);
|
|
6486
6532
|
const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
|
|
6487
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
6533
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, response, {
|
|
6488
6534
|
user: updatedUser
|
|
6489
6535
|
}), {
|
|
6490
6536
|
isAuthenticated: true
|
|
@@ -6527,8 +6573,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6527
6573
|
user,
|
|
6528
6574
|
tenants = [],
|
|
6529
6575
|
activeTenant
|
|
6530
|
-
} = await (0,
|
|
6531
|
-
if ((0,
|
|
6576
|
+
} = await (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.refreshTokenWithRetry)(() => api.auth.refreshTokenV3());
|
|
6577
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
6532
6578
|
const mfaRequiredState = await actions.getMfaRequiredState(user);
|
|
6533
6579
|
actions.setAuthState(mfaRequiredState);
|
|
6534
6580
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -6547,9 +6593,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6547
6593
|
tenants,
|
|
6548
6594
|
activeTenant
|
|
6549
6595
|
}, {
|
|
6550
|
-
loginState: (0,
|
|
6596
|
+
loginState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, loginState, {
|
|
6551
6597
|
quickLoginToRegister,
|
|
6552
|
-
flow: shouldNavigateToRegisterQuickLogin ?
|
|
6598
|
+
flow: shouldNavigateToRegisterQuickLogin ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.RegisterQuickLogin : _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login
|
|
6553
6599
|
}),
|
|
6554
6600
|
isAuthenticated: true
|
|
6555
6601
|
});
|
|
@@ -6558,8 +6604,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6558
6604
|
});
|
|
6559
6605
|
}
|
|
6560
6606
|
} catch (e) {
|
|
6561
|
-
// a refused identity refresh has already used up the refresh token: no retry, only the SSO redirect
|
|
6562
|
-
|
|
6607
|
+
// a refused identity refresh has already used up the refresh token: no retry, only the SSO redirect, except on
|
|
6608
|
+
// a login callback, where the page itself completes the login
|
|
6609
|
+
if ((0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.isEnforceSsoOnTenantAccessEnabled)(store.root.appName) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isOnLoginCodeCallbackRoute)(store) && (await __redirectToSsoIfRequired(e))) {
|
|
6563
6610
|
return;
|
|
6564
6611
|
}
|
|
6565
6612
|
contextHolder.setAccessToken(null);
|
|
@@ -6577,12 +6624,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6577
6624
|
} = {}) => {
|
|
6578
6625
|
try {
|
|
6579
6626
|
const authApi = api.auth;
|
|
6580
|
-
const response = await (0,
|
|
6627
|
+
const response = await (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.refreshTokenWithRetry)(async () => {
|
|
6581
6628
|
const tokens = await _toolkit__WEBPACK_IMPORTED_MODULE_11__["default"].getTokens();
|
|
6582
6629
|
return await authApi.silentOAuthRefreshTokenV3(tokens);
|
|
6583
6630
|
});
|
|
6584
6631
|
const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
|
|
6585
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
6632
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, response, {
|
|
6586
6633
|
user: updatedUser
|
|
6587
6634
|
}), {
|
|
6588
6635
|
isAuthenticated: true
|
|
@@ -6606,6 +6653,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6606
6653
|
|
|
6607
6654
|
/** @protected */
|
|
6608
6655
|
const __refreshToken = async () => {
|
|
6656
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.restoreTabTenantUnlessSsoCallback)(store);
|
|
6609
6657
|
if (_toolkit__WEBPACK_IMPORTED_MODULE_11__["default"].isGetTokensAvailable()) {
|
|
6610
6658
|
await __refreshTokenWithNativeTokens();
|
|
6611
6659
|
return;
|
|
@@ -6633,7 +6681,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6633
6681
|
const oldEntitlements = (_store$auth$user2 = store.auth.user) == null ? void 0 : _store$auth$user2.entitlements;
|
|
6634
6682
|
if ((0,_toolkit__WEBPACK_IMPORTED_MODULE_12__.isEntitlementsDeeplyEqual)(oldEntitlements, updatedUser == null ? void 0 : updatedUser.entitlements)) {
|
|
6635
6683
|
// set the previous entitlements object
|
|
6636
|
-
return (0,
|
|
6684
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, updatedUser, {
|
|
6637
6685
|
entitlements: oldEntitlements
|
|
6638
6686
|
});
|
|
6639
6687
|
}
|
|
@@ -6725,7 +6773,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6725
6773
|
onRedirectTo,
|
|
6726
6774
|
routes
|
|
6727
6775
|
} = store.auth;
|
|
6728
|
-
if ((0,
|
|
6776
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
6729
6777
|
const mfaRequiredState = await actions.getMfaRequiredState(user, _constants__WEBPACK_IMPORTED_MODULE_15__.DEFAULT_RETRY_CONFIG, true);
|
|
6730
6778
|
actions.setAuthState(mfaRequiredState);
|
|
6731
6779
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -6798,11 +6846,11 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6798
6846
|
callback,
|
|
6799
6847
|
error
|
|
6800
6848
|
} = _ref3,
|
|
6801
|
-
body = (0,
|
|
6849
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref3, _excluded);
|
|
6802
6850
|
const publicPolicy = store.auth.securityPolicyState.publicPolicy.policy;
|
|
6803
6851
|
if (!(publicPolicy != null && publicPolicy.authStrategy)) {
|
|
6804
6852
|
actions.setLoginState({
|
|
6805
|
-
step:
|
|
6853
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithPassword,
|
|
6806
6854
|
loading: false
|
|
6807
6855
|
});
|
|
6808
6856
|
callback == null ? void 0 : callback();
|
|
@@ -6810,20 +6858,20 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6810
6858
|
}
|
|
6811
6859
|
if ((publicPolicy == null ? void 0 : publicPolicy.authStrategy) === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.EmailAndPassword) {
|
|
6812
6860
|
actions.setLoginState({
|
|
6813
|
-
step:
|
|
6861
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithPassword,
|
|
6814
6862
|
loading: false
|
|
6815
6863
|
});
|
|
6816
6864
|
callback == null ? void 0 : callback();
|
|
6817
6865
|
} 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,
|
|
6866
|
+
await actions.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, body, {
|
|
6819
6867
|
type: publicPolicy == null ? void 0 : publicPolicy.authStrategy,
|
|
6820
6868
|
callback
|
|
6821
6869
|
}));
|
|
6822
6870
|
} else {
|
|
6823
6871
|
actions.setLoginState({
|
|
6824
|
-
step:
|
|
6872
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithPassword,
|
|
6825
6873
|
loading: false,
|
|
6826
|
-
error: (0,
|
|
6874
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(error)
|
|
6827
6875
|
});
|
|
6828
6876
|
callback == null ? void 0 : callback();
|
|
6829
6877
|
}
|
|
@@ -6846,7 +6894,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6846
6894
|
};
|
|
6847
6895
|
const scheduleSsoRedirect = (ssoRedirectUrl, attempt) => {
|
|
6848
6896
|
setTimeout(() => {
|
|
6849
|
-
if (attempt === latestPreLoginAttempt && store.auth.loginState.step ===
|
|
6897
|
+
if (attempt === latestPreLoginAttempt && store.auth.loginState.step === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.redirectToSSO) {
|
|
6850
6898
|
redirectToFullPage(ssoRedirectUrl);
|
|
6851
6899
|
}
|
|
6852
6900
|
}, SSO_REDIRECT_DELAY_MS);
|
|
@@ -6871,7 +6919,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6871
6919
|
});
|
|
6872
6920
|
try {
|
|
6873
6921
|
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,
|
|
6922
|
+
const preLoginResult = await api.auth.preLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
|
|
6875
6923
|
email
|
|
6876
6924
|
} : {}, username ? {
|
|
6877
6925
|
username
|
|
@@ -6909,14 +6957,14 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6909
6957
|
callback == null ? void 0 : callback();
|
|
6910
6958
|
} else {
|
|
6911
6959
|
setLoginState({
|
|
6912
|
-
step:
|
|
6960
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.redirectToSSO,
|
|
6913
6961
|
loading: false,
|
|
6914
6962
|
ssoRedirectUrl
|
|
6915
6963
|
});
|
|
6916
6964
|
scheduleSsoRedirect(ssoRedirectUrl, attempt);
|
|
6917
6965
|
}
|
|
6918
6966
|
} else {
|
|
6919
|
-
await ssoPreloginFailed((0,
|
|
6967
|
+
await ssoPreloginFailed((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, username ? {
|
|
6920
6968
|
username
|
|
6921
6969
|
} : {
|
|
6922
6970
|
email: email != null ? email : ''
|
|
@@ -6927,7 +6975,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6927
6975
|
}));
|
|
6928
6976
|
}
|
|
6929
6977
|
} catch (e) {
|
|
6930
|
-
await ssoPreloginFailed((0,
|
|
6978
|
+
await ssoPreloginFailed((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, username ? {
|
|
6931
6979
|
username
|
|
6932
6980
|
} : {
|
|
6933
6981
|
email: email != null ? email : ''
|
|
@@ -6974,7 +7022,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6974
7022
|
onRedirectTo(routes.authenticatedUrl);
|
|
6975
7023
|
}, 1000);
|
|
6976
7024
|
setLoginState({
|
|
6977
|
-
step:
|
|
7025
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithSSOFailed,
|
|
6978
7026
|
loading: false
|
|
6979
7027
|
});
|
|
6980
7028
|
}
|
|
@@ -6996,7 +7044,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
6996
7044
|
user,
|
|
6997
7045
|
tenants = [],
|
|
6998
7046
|
activeTenant
|
|
6999
|
-
} = await api.auth.loginv2((0,
|
|
7047
|
+
} = await api.auth.loginv2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, email ? {
|
|
7000
7048
|
email
|
|
7001
7049
|
} : {}, username ? {
|
|
7002
7050
|
username
|
|
@@ -7009,7 +7057,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7009
7057
|
onRedirectTo,
|
|
7010
7058
|
routes
|
|
7011
7059
|
} = store.auth;
|
|
7012
|
-
if ((0,
|
|
7060
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7013
7061
|
const mfaRequiredState = await actions.getMfaRequiredState(user, _constants__WEBPACK_IMPORTED_MODULE_15__.DEFAULT_RETRY_CONFIG, true, email);
|
|
7014
7062
|
actions.setAuthState(mfaRequiredState);
|
|
7015
7063
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7017,9 +7065,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7017
7065
|
});
|
|
7018
7066
|
} else {
|
|
7019
7067
|
const [securityCenterLoginFlows] = await actions.getFeatureFlags(['security-center-show-login-flows']);
|
|
7020
|
-
if ((0,
|
|
7068
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isResetPasswordRequired)(user, store.root.appName)) {
|
|
7021
7069
|
setLoginState({
|
|
7022
|
-
step:
|
|
7070
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationExpired,
|
|
7023
7071
|
loading: false,
|
|
7024
7072
|
resetPasswordToken: user.resetPasswordToken,
|
|
7025
7073
|
userId: user.userId
|
|
@@ -7042,7 +7090,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7042
7090
|
loading: false,
|
|
7043
7091
|
error: undefined,
|
|
7044
7092
|
mfaToken: user.mfaToken,
|
|
7045
|
-
step: loginState.flow ===
|
|
7093
|
+
step: loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.success : loginState.step,
|
|
7046
7094
|
tenants,
|
|
7047
7095
|
tenantsLoading: true,
|
|
7048
7096
|
isBreachedPassword: user.isBreachedPassword,
|
|
@@ -7064,10 +7112,10 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7064
7112
|
};
|
|
7065
7113
|
(0,_helpers__WEBPACK_IMPORTED_MODULE_22__.reportGTMEvent)(_helpers__WEBPACK_IMPORTED_MODULE_22__.GTMEventAction.LOGIN_COMPLETED, loginCompletedPayload);
|
|
7066
7114
|
}
|
|
7067
|
-
if (loginState.flow ===
|
|
7115
|
+
if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login) {
|
|
7068
7116
|
if (securityCenterLoginFlows && user.isBreachedPassword && !isAuthenticated) {
|
|
7069
7117
|
setLoginState({
|
|
7070
|
-
step:
|
|
7118
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.breachedPassword,
|
|
7071
7119
|
loading: false
|
|
7072
7120
|
});
|
|
7073
7121
|
} else {
|
|
@@ -7075,14 +7123,14 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7075
7123
|
const shouldShowPasswordRotationPrompt = (0,_helpers__WEBPACK_IMPORTED_MODULE_19__.shouldShowPasswordRotationPromptFunc)(user);
|
|
7076
7124
|
if (shouldShowPasswordRotationPrompt) {
|
|
7077
7125
|
setLoginState({
|
|
7078
|
-
step:
|
|
7126
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.passwordRotationNotification,
|
|
7079
7127
|
loading: false
|
|
7080
7128
|
});
|
|
7081
7129
|
} else {
|
|
7082
7130
|
const shouldShowPromptPasskeys = await actions.__shouldShowPromptPasskeys();
|
|
7083
7131
|
if (shouldShowPromptPasskeys) {
|
|
7084
7132
|
setLoginState({
|
|
7085
|
-
step:
|
|
7133
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.promptPasskeys,
|
|
7086
7134
|
loading: false
|
|
7087
7135
|
});
|
|
7088
7136
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7113,7 +7161,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7113
7161
|
callback == null ? void 0 : callback(false, e);
|
|
7114
7162
|
setLoginState({
|
|
7115
7163
|
email,
|
|
7116
|
-
error: (0,
|
|
7164
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7117
7165
|
loading: false
|
|
7118
7166
|
});
|
|
7119
7167
|
}
|
|
@@ -7122,7 +7170,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7122
7170
|
keepHostedOAuthState = false
|
|
7123
7171
|
} = {}) => {
|
|
7124
7172
|
if (contextHolder.isSessionPerTenantEnabled()) {
|
|
7125
|
-
(0,
|
|
7173
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.removeTabTenantFromSessionStorage)();
|
|
7126
7174
|
}
|
|
7127
7175
|
// Step-up re-login goes through silentLogout but still needs the hosted OAuth state to finish the client flow.
|
|
7128
7176
|
if (!keepHostedOAuthState) {
|
|
@@ -7155,7 +7203,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7155
7203
|
} catch {
|
|
7156
7204
|
/* empty */
|
|
7157
7205
|
}
|
|
7158
|
-
const isStepUpInProgress = !!((_window2 = window) != null && _window2.localStorage.getItem(
|
|
7206
|
+
const isStepUpInProgress = !!((_window2 = window) != null && _window2.localStorage.getItem(_StepUpState_consts__WEBPACK_IMPORTED_MODULE_7__.SHOULD_STEP_UP_KEY));
|
|
7159
7207
|
clearLogoutLocalState({
|
|
7160
7208
|
keepHostedOAuthState: isStepUpInProgress
|
|
7161
7209
|
});
|
|
@@ -7174,7 +7222,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7174
7222
|
setLoginState({
|
|
7175
7223
|
loading: false,
|
|
7176
7224
|
error: undefined,
|
|
7177
|
-
step:
|
|
7225
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.preLogin
|
|
7178
7226
|
});
|
|
7179
7227
|
actions.setAuthState({
|
|
7180
7228
|
user: undefined,
|
|
@@ -7184,7 +7232,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7184
7232
|
} catch (e) {
|
|
7185
7233
|
var _payload$callback5;
|
|
7186
7234
|
setLoginState({
|
|
7187
|
-
error: (0,
|
|
7235
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7188
7236
|
loading: false
|
|
7189
7237
|
});
|
|
7190
7238
|
(_payload$callback5 = payload.callback) == null ? void 0 : _payload$callback5.call(payload, false, e);
|
|
@@ -7194,7 +7242,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7194
7242
|
const {
|
|
7195
7243
|
callback
|
|
7196
7244
|
} = _payload,
|
|
7197
|
-
payload = (0,
|
|
7245
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded2);
|
|
7198
7246
|
try {
|
|
7199
7247
|
setLoginState({
|
|
7200
7248
|
loading: true
|
|
@@ -7202,11 +7250,11 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7202
7250
|
|
|
7203
7251
|
// TODO: fix @frontegg/rest-api return value
|
|
7204
7252
|
// @ts-ignore
|
|
7205
|
-
const preloginRes = await api.auth.passwordlessPreLogin((0,
|
|
7253
|
+
const preloginRes = await api.auth.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
|
|
7206
7254
|
type: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.SmsCode
|
|
7207
7255
|
}));
|
|
7208
7256
|
setLoginState({
|
|
7209
|
-
step:
|
|
7257
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithQuickSmsOtc,
|
|
7210
7258
|
loading: false,
|
|
7211
7259
|
phoneNumber: preloginRes == null ? void 0 : preloginRes.phoneNumber,
|
|
7212
7260
|
error: undefined
|
|
@@ -7214,7 +7262,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7214
7262
|
callback == null ? void 0 : callback(true);
|
|
7215
7263
|
} catch (e) {
|
|
7216
7264
|
setLoginState({
|
|
7217
|
-
error: (0,
|
|
7265
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7218
7266
|
loading: false
|
|
7219
7267
|
});
|
|
7220
7268
|
callback == null ? void 0 : callback(false, e);
|
|
@@ -7224,7 +7272,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7224
7272
|
const {
|
|
7225
7273
|
callback
|
|
7226
7274
|
} = _payload,
|
|
7227
|
-
payload = (0,
|
|
7275
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded3);
|
|
7228
7276
|
try {
|
|
7229
7277
|
setLoginState({
|
|
7230
7278
|
loading: true
|
|
@@ -7234,13 +7282,13 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7234
7282
|
phoneNumber: payload.phoneNumber,
|
|
7235
7283
|
loading: false,
|
|
7236
7284
|
changePhoneId: changePhoneRes.changePhoneId,
|
|
7237
|
-
step:
|
|
7285
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.loginWithQuickSmsOtc,
|
|
7238
7286
|
error: undefined
|
|
7239
7287
|
});
|
|
7240
7288
|
callback == null ? void 0 : callback(true);
|
|
7241
7289
|
} catch (e) {
|
|
7242
7290
|
setLoginState({
|
|
7243
|
-
error: (0,
|
|
7291
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7244
7292
|
loading: false
|
|
7245
7293
|
});
|
|
7246
7294
|
}
|
|
@@ -7249,7 +7297,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7249
7297
|
const {
|
|
7250
7298
|
callback
|
|
7251
7299
|
} = _payload,
|
|
7252
|
-
payload = (0,
|
|
7300
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded4);
|
|
7253
7301
|
try {
|
|
7254
7302
|
setLoginState({
|
|
7255
7303
|
loading: true
|
|
@@ -7261,7 +7309,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7261
7309
|
callback == null ? void 0 : callback(true);
|
|
7262
7310
|
} catch (e) {
|
|
7263
7311
|
setLoginState({
|
|
7264
|
-
error: (0,
|
|
7312
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7265
7313
|
loading: false
|
|
7266
7314
|
});
|
|
7267
7315
|
}
|
|
@@ -7270,7 +7318,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7270
7318
|
const {
|
|
7271
7319
|
callback
|
|
7272
7320
|
} = _payload,
|
|
7273
|
-
payload = (0,
|
|
7321
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded5);
|
|
7274
7322
|
try {
|
|
7275
7323
|
var _username;
|
|
7276
7324
|
setLoginState({
|
|
@@ -7286,7 +7334,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7286
7334
|
}
|
|
7287
7335
|
// TODO: [Typescript 4.8] fix @frontegg/rest-api return value
|
|
7288
7336
|
// @ts-ignore
|
|
7289
|
-
const preloginRes = await api.auth.passwordlessPreLogin((0,
|
|
7337
|
+
const preloginRes = await api.auth.passwordlessPreLogin((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
|
|
7290
7338
|
email,
|
|
7291
7339
|
username: (_username = username) != null ? _username : ''
|
|
7292
7340
|
}));
|
|
@@ -7303,7 +7351,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7303
7351
|
callback == null ? void 0 : callback();
|
|
7304
7352
|
} catch (e) {
|
|
7305
7353
|
setLoginState({
|
|
7306
|
-
error: (0,
|
|
7354
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e),
|
|
7307
7355
|
loading: false
|
|
7308
7356
|
});
|
|
7309
7357
|
callback == null ? void 0 : callback(null, e);
|
|
@@ -7314,7 +7362,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7314
7362
|
callback,
|
|
7315
7363
|
events
|
|
7316
7364
|
} = _payload,
|
|
7317
|
-
payload = (0,
|
|
7365
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded6);
|
|
7318
7366
|
try {
|
|
7319
7367
|
setLoginState({
|
|
7320
7368
|
loading: true
|
|
@@ -7328,7 +7376,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7328
7376
|
routes,
|
|
7329
7377
|
onRedirectTo
|
|
7330
7378
|
} = store.auth;
|
|
7331
|
-
if ((0,
|
|
7379
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7332
7380
|
const mfaRequiredState = await actions.getMfaRequiredState(user);
|
|
7333
7381
|
actions.setAuthState(mfaRequiredState);
|
|
7334
7382
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7373,11 +7421,11 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7373
7421
|
actions.setAuthState({
|
|
7374
7422
|
isLoading: false
|
|
7375
7423
|
});
|
|
7376
|
-
if (loginState.flow ===
|
|
7424
|
+
if (loginState.flow === _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login) {
|
|
7377
7425
|
const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
|
|
7378
7426
|
if (shouldShowPrompt) {
|
|
7379
7427
|
actions.setLoginState({
|
|
7380
|
-
step:
|
|
7428
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.promptPasskeys,
|
|
7381
7429
|
loading: false
|
|
7382
7430
|
});
|
|
7383
7431
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7389,7 +7437,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7389
7437
|
});
|
|
7390
7438
|
if (_payload.type === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.AuthStrategyEnum.MagicLink) {
|
|
7391
7439
|
actions.setLoginState({
|
|
7392
|
-
step:
|
|
7440
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.magicLinkPostLoginSuccess,
|
|
7393
7441
|
loading: false
|
|
7394
7442
|
});
|
|
7395
7443
|
await (0,_helpers__WEBPACK_IMPORTED_MODULE_14__.delay)(5000);
|
|
@@ -7409,7 +7457,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7409
7457
|
return;
|
|
7410
7458
|
}
|
|
7411
7459
|
setLoginState({
|
|
7412
|
-
error: (0,
|
|
7460
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e, 'Failed to authenticate')
|
|
7413
7461
|
});
|
|
7414
7462
|
callback == null ? void 0 : callback(null, e);
|
|
7415
7463
|
} finally {
|
|
@@ -7433,7 +7481,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7433
7481
|
});
|
|
7434
7482
|
} catch (e) {
|
|
7435
7483
|
setLoginState({
|
|
7436
|
-
inviteTokenError: (0,
|
|
7484
|
+
inviteTokenError: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e, `We couldn't verify your invitation`)
|
|
7437
7485
|
});
|
|
7438
7486
|
} finally {
|
|
7439
7487
|
setLoginState({
|
|
@@ -7445,7 +7493,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7445
7493
|
const {
|
|
7446
7494
|
callback
|
|
7447
7495
|
} = payload,
|
|
7448
|
-
body = (0,
|
|
7496
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded7);
|
|
7449
7497
|
try {
|
|
7450
7498
|
var _options$allowCredent;
|
|
7451
7499
|
actions.setPasskeysState({
|
|
@@ -7460,7 +7508,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7460
7508
|
options
|
|
7461
7509
|
} = await api.auth.webAuthnPreLogin(body);
|
|
7462
7510
|
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,
|
|
7511
|
+
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
7512
|
id: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(credentials.id)
|
|
7465
7513
|
}));
|
|
7466
7514
|
setLoginState({
|
|
@@ -7469,7 +7517,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7469
7517
|
callback == null ? void 0 : callback(options);
|
|
7470
7518
|
} catch (e) {
|
|
7471
7519
|
setLoginState({
|
|
7472
|
-
error: (0,
|
|
7520
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7473
7521
|
});
|
|
7474
7522
|
callback == null ? void 0 : callback(null);
|
|
7475
7523
|
} finally {
|
|
@@ -7485,7 +7533,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7485
7533
|
const {
|
|
7486
7534
|
callback
|
|
7487
7535
|
} = payload,
|
|
7488
|
-
body = (0,
|
|
7536
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded8);
|
|
7489
7537
|
try {
|
|
7490
7538
|
var _publicKey$response$u;
|
|
7491
7539
|
actions.setPasskeysState({
|
|
@@ -7495,8 +7543,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7495
7543
|
loading: true
|
|
7496
7544
|
});
|
|
7497
7545
|
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,
|
|
7546
|
+
const _await$api$auth$webAu = await api.auth.webAuthnPostLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, publicKey, {
|
|
7547
|
+
response: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, publicKey.response, {
|
|
7500
7548
|
userHandle: (_publicKey$response$u = publicKey.response.userHandle) != null ? _publicKey$response$u : undefined
|
|
7501
7549
|
}),
|
|
7502
7550
|
recaptchaToken: body.recaptchaToken,
|
|
@@ -7505,8 +7553,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7505
7553
|
{
|
|
7506
7554
|
user
|
|
7507
7555
|
} = _await$api$auth$webAu,
|
|
7508
|
-
rest = (0,
|
|
7509
|
-
if ((0,
|
|
7556
|
+
rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_await$api$auth$webAu, _excluded9);
|
|
7557
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7510
7558
|
const {
|
|
7511
7559
|
routes,
|
|
7512
7560
|
onRedirectTo
|
|
@@ -7521,7 +7569,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7521
7569
|
if (user.id) {
|
|
7522
7570
|
localStorage.setItem('userId', user.id);
|
|
7523
7571
|
}
|
|
7524
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
7572
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
7525
7573
|
user
|
|
7526
7574
|
}, rest), {
|
|
7527
7575
|
isAuthenticated: true
|
|
@@ -7548,7 +7596,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7548
7596
|
return;
|
|
7549
7597
|
}
|
|
7550
7598
|
setLoginState({
|
|
7551
|
-
error: (0,
|
|
7599
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7552
7600
|
});
|
|
7553
7601
|
callback == null ? void 0 : callback(null);
|
|
7554
7602
|
} finally {
|
|
@@ -7579,7 +7627,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7579
7627
|
callback == null ? void 0 : callback(options);
|
|
7580
7628
|
} catch (e) {
|
|
7581
7629
|
setLoginState({
|
|
7582
|
-
error: (0,
|
|
7630
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7583
7631
|
});
|
|
7584
7632
|
callback == null ? void 0 : callback(null);
|
|
7585
7633
|
} finally {
|
|
@@ -7592,7 +7640,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7592
7640
|
const {
|
|
7593
7641
|
callback
|
|
7594
7642
|
} = payload,
|
|
7595
|
-
body = (0,
|
|
7643
|
+
body = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded10);
|
|
7596
7644
|
try {
|
|
7597
7645
|
setLoginState({
|
|
7598
7646
|
loading: true
|
|
@@ -7607,7 +7655,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7607
7655
|
callback == null ? void 0 : callback(true);
|
|
7608
7656
|
} catch (e) {
|
|
7609
7657
|
setLoginState({
|
|
7610
|
-
error: (0,
|
|
7658
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7611
7659
|
});
|
|
7612
7660
|
callback == null ? void 0 : callback(null);
|
|
7613
7661
|
} finally {
|
|
@@ -7657,19 +7705,19 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7657
7705
|
const {
|
|
7658
7706
|
callback
|
|
7659
7707
|
} = _payload,
|
|
7660
|
-
payload = (0,
|
|
7708
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded11);
|
|
7661
7709
|
setLoginState({
|
|
7662
7710
|
loading: true
|
|
7663
7711
|
});
|
|
7664
7712
|
try {
|
|
7665
7713
|
var _data$options$exclude;
|
|
7666
7714
|
const data = await api.auth.preEnrollMFAWebAuthnForLogin(payload);
|
|
7667
|
-
const options = (0,
|
|
7715
|
+
const options = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, data.options, {
|
|
7668
7716
|
challenge: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(data.options.challenge),
|
|
7669
|
-
user: (0,
|
|
7717
|
+
user: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, data.options.user, {
|
|
7670
7718
|
id: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(data.options.user.id)
|
|
7671
7719
|
}),
|
|
7672
|
-
excludeCredentials: (_data$options$exclude = data.options.excludeCredentials) == null ? void 0 : _data$options$exclude.map(credentials => (0,
|
|
7720
|
+
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
7721
|
id: (0,_helpers__WEBPACK_IMPORTED_MODULE_24__.base64urlDecode)(credentials.id)
|
|
7674
7722
|
}))
|
|
7675
7723
|
});
|
|
@@ -7683,7 +7731,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7683
7731
|
} catch (e) {
|
|
7684
7732
|
setLoginState({
|
|
7685
7733
|
loading: false,
|
|
7686
|
-
error: (0,
|
|
7734
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7687
7735
|
});
|
|
7688
7736
|
callback == null ? void 0 : callback(null);
|
|
7689
7737
|
}
|
|
@@ -7692,13 +7740,13 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7692
7740
|
const {
|
|
7693
7741
|
callback
|
|
7694
7742
|
} = _payload,
|
|
7695
|
-
payload = (0,
|
|
7743
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded12);
|
|
7696
7744
|
setLoginState({
|
|
7697
7745
|
loading: true
|
|
7698
7746
|
});
|
|
7699
7747
|
try {
|
|
7700
7748
|
const publicKey = (0,_helpers__WEBPACK_IMPORTED_MODULE_25__.publicKeyCredentialToJSON)(payload.publicKey);
|
|
7701
|
-
const data = await api.auth.enrollMFAWebAuthnForLoginV2((0,
|
|
7749
|
+
const data = await api.auth.enrollMFAWebAuthnForLoginV2((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, payload, {
|
|
7702
7750
|
options: publicKey
|
|
7703
7751
|
}));
|
|
7704
7752
|
await handleEnrollMFAResponse(data);
|
|
@@ -7707,9 +7755,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7707
7755
|
});
|
|
7708
7756
|
callback == null ? void 0 : callback(true);
|
|
7709
7757
|
} catch (e) {
|
|
7758
|
+
if (await __redirectToSsoIfRequired(e)) {
|
|
7759
|
+
return;
|
|
7760
|
+
}
|
|
7710
7761
|
setLoginState({
|
|
7711
7762
|
loading: false,
|
|
7712
|
-
error: (0,
|
|
7763
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7713
7764
|
});
|
|
7714
7765
|
callback == null ? void 0 : callback(null);
|
|
7715
7766
|
}
|
|
@@ -7718,7 +7769,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7718
7769
|
const {
|
|
7719
7770
|
callback
|
|
7720
7771
|
} = _payload,
|
|
7721
|
-
payload = (0,
|
|
7772
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded13);
|
|
7722
7773
|
setLoginState({
|
|
7723
7774
|
loading: true
|
|
7724
7775
|
});
|
|
@@ -7730,9 +7781,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7730
7781
|
});
|
|
7731
7782
|
callback == null ? void 0 : callback(true);
|
|
7732
7783
|
} catch (e) {
|
|
7784
|
+
if (await __redirectToSsoIfRequired(e)) {
|
|
7785
|
+
return;
|
|
7786
|
+
}
|
|
7733
7787
|
setLoginState({
|
|
7734
7788
|
loading: false,
|
|
7735
|
-
error: (0,
|
|
7789
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7736
7790
|
});
|
|
7737
7791
|
callback == null ? void 0 : callback(null);
|
|
7738
7792
|
}
|
|
@@ -7741,7 +7795,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7741
7795
|
const {
|
|
7742
7796
|
callback
|
|
7743
7797
|
} = _payload,
|
|
7744
|
-
payload = (0,
|
|
7798
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded14);
|
|
7745
7799
|
setLoginState({
|
|
7746
7800
|
loading: true
|
|
7747
7801
|
});
|
|
@@ -7759,7 +7813,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7759
7813
|
} catch (e) {
|
|
7760
7814
|
setLoginState({
|
|
7761
7815
|
loading: false,
|
|
7762
|
-
error: (0,
|
|
7816
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7763
7817
|
});
|
|
7764
7818
|
callback == null ? void 0 : callback(null);
|
|
7765
7819
|
}
|
|
@@ -7768,7 +7822,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7768
7822
|
const {
|
|
7769
7823
|
callback
|
|
7770
7824
|
} = _payload,
|
|
7771
|
-
payload = (0,
|
|
7825
|
+
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded15);
|
|
7772
7826
|
setLoginState({
|
|
7773
7827
|
loading: true
|
|
7774
7828
|
});
|
|
@@ -7780,9 +7834,12 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7780
7834
|
});
|
|
7781
7835
|
callback == null ? void 0 : callback(true);
|
|
7782
7836
|
} catch (e) {
|
|
7837
|
+
if (await __redirectToSsoIfRequired(e)) {
|
|
7838
|
+
return;
|
|
7839
|
+
}
|
|
7783
7840
|
setLoginState({
|
|
7784
7841
|
loading: false,
|
|
7785
|
-
error: (0,
|
|
7842
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7786
7843
|
});
|
|
7787
7844
|
callback == null ? void 0 : callback(null);
|
|
7788
7845
|
}
|
|
@@ -7822,7 +7879,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7822
7879
|
setLoginState({
|
|
7823
7880
|
loading: false,
|
|
7824
7881
|
error: undefined,
|
|
7825
|
-
step:
|
|
7882
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.breachedPasswordSuccess
|
|
7826
7883
|
});
|
|
7827
7884
|
actions.setAuthState({
|
|
7828
7885
|
isAuthenticated: false
|
|
@@ -7830,7 +7887,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7830
7887
|
} catch (e) {
|
|
7831
7888
|
setLoginState({
|
|
7832
7889
|
loading: false,
|
|
7833
|
-
error: (0,
|
|
7890
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_9__.errorHandler)(e)
|
|
7834
7891
|
});
|
|
7835
7892
|
}
|
|
7836
7893
|
};
|
|
@@ -7853,8 +7910,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7853
7910
|
return;
|
|
7854
7911
|
}
|
|
7855
7912
|
try {
|
|
7856
|
-
const tabTenantId = tenantId != null ? tenantId : (0,
|
|
7857
|
-
const body = (0,
|
|
7913
|
+
const tabTenantId = tenantId != null ? tenantId : (0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_8__.getTabTenantFromSessionStorage)(store.root.appName);
|
|
7914
|
+
const body = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
7858
7915
|
grant_type: 'refresh_token',
|
|
7859
7916
|
refresh_token: currentUser == null ? void 0 : currentUser.refreshToken
|
|
7860
7917
|
}, tabTenantId ? {
|
|
@@ -7862,7 +7919,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7862
7919
|
} : {});
|
|
7863
7920
|
const response = await api.auth.exchangeOAuthTokensV2(body);
|
|
7864
7921
|
const updatedUser = await __handleUnnecessaryEntitlementsUpdate(response.user);
|
|
7865
|
-
actions.afterAuthenticationStateUpdate((0,
|
|
7922
|
+
actions.afterAuthenticationStateUpdate((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, response, {
|
|
7866
7923
|
user: updatedUser
|
|
7867
7924
|
}), {
|
|
7868
7925
|
isAuthenticated: true
|
|
@@ -7895,8 +7952,8 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7895
7952
|
user,
|
|
7896
7953
|
tenants = [],
|
|
7897
7954
|
activeTenant
|
|
7898
|
-
} = await (0,
|
|
7899
|
-
if ((0,
|
|
7955
|
+
} = await (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.refreshTokenWithRetry)(() => api.auth.refreshTokenV3());
|
|
7956
|
+
if ((0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isMfaRequired)(user, store.root.appName)) {
|
|
7900
7957
|
const mfaRequiredState = await actions.getMfaRequiredState(user);
|
|
7901
7958
|
actions.setAuthState(mfaRequiredState);
|
|
7902
7959
|
onRedirectTo(routes.loginUrl, {
|
|
@@ -7907,7 +7964,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7907
7964
|
const shouldShowPrompt = await actions.__shouldShowPromptPasskeys();
|
|
7908
7965
|
if (shouldShowPrompt) {
|
|
7909
7966
|
actions.setLoginState({
|
|
7910
|
-
step:
|
|
7967
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.promptPasskeys,
|
|
7911
7968
|
loading: false
|
|
7912
7969
|
});
|
|
7913
7970
|
actions.afterAuthenticationStateUpdate({
|
|
@@ -7932,9 +7989,9 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7932
7989
|
tenants,
|
|
7933
7990
|
activeTenant
|
|
7934
7991
|
}, {
|
|
7935
|
-
loginState: (0,
|
|
7992
|
+
loginState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, loginState, {
|
|
7936
7993
|
quickLoginToRegister,
|
|
7937
|
-
flow: shouldNavigateToRegisterQuickLogin ?
|
|
7994
|
+
flow: shouldNavigateToRegisterQuickLogin ? _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.RegisterQuickLogin : _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginFlow.Login
|
|
7938
7995
|
}),
|
|
7939
7996
|
isAuthenticated: true
|
|
7940
7997
|
});
|
|
@@ -7963,7 +8020,7 @@ const isUsableRedirect = onRedirectTo => typeof onRedirectTo === 'function' && o
|
|
|
7963
8020
|
await __refreshTokenEmbeddedSocialLogins();
|
|
7964
8021
|
}
|
|
7965
8022
|
};
|
|
7966
|
-
return (0,
|
|
8023
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
7967
8024
|
setLoginState,
|
|
7968
8025
|
resetLoginState,
|
|
7969
8026
|
requestAuthorize,
|
|
@@ -11116,6 +11173,9 @@ const _excluded = ["callback"],
|
|
|
11116
11173
|
}
|
|
11117
11174
|
callback == null ? void 0 : callback(mfaState.recoveryCode);
|
|
11118
11175
|
} catch (e) {
|
|
11176
|
+
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
11177
|
+
return;
|
|
11178
|
+
}
|
|
11119
11179
|
setMfaState({
|
|
11120
11180
|
loading: false,
|
|
11121
11181
|
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.errorHandler)(e)
|
|
@@ -16415,6 +16475,10 @@ const isMfaIsNotEnrolledError = error => (error == null ? void 0 : error['messag
|
|
|
16415
16475
|
}
|
|
16416
16476
|
callback == null ? void 0 : callback(true);
|
|
16417
16477
|
} catch (e) {
|
|
16478
|
+
// the session's tenant requires SSO: its SSO login steps the user up, instead of logging them out
|
|
16479
|
+
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
16480
|
+
return;
|
|
16481
|
+
}
|
|
16418
16482
|
callback == null ? void 0 : callback(false);
|
|
16419
16483
|
await __handleStepUpError(e);
|
|
16420
16484
|
}
|
|
@@ -16703,9 +16767,10 @@ const getUrlDerivedStepUp = () => {
|
|
|
16703
16767
|
|
|
16704
16768
|
/**
|
|
16705
16769
|
* Set the url and query params in the local storage FRONTEGG_AFTER_AUTH_REDIRECT_URL value
|
|
16770
|
+
* @param urlStrategy 'hash' saves the route in the hash, which is the page the app shows
|
|
16706
16771
|
*/
|
|
16707
|
-
function setAfterAuthRedirectUrlForStepUp() {
|
|
16708
|
-
const encodedRedirectUrl = window.location.pathname + window.location.search;
|
|
16772
|
+
function setAfterAuthRedirectUrlForStepUp(urlStrategy = 'path') {
|
|
16773
|
+
const encodedRedirectUrl = urlStrategy === 'hash' ? window.location.hash.substring(1) || '/' : window.location.pathname + window.location.search;
|
|
16709
16774
|
window.localStorage.setItem(_constants__WEBPACK_IMPORTED_MODULE_1__.FRONTEGG_AFTER_AUTH_REDIRECT_URL, encodedRedirectUrl);
|
|
16710
16775
|
}
|
|
16711
16776
|
|
|
@@ -18480,7 +18545,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18480
18545
|
if (await actions.__redirectToSsoIfRequired(e)) {
|
|
18481
18546
|
// the tab comes back from SSO in the target tenant, not the one the failed switch restored
|
|
18482
18547
|
if (_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.ContextHolder.for(store.root.appName).isSessionPerTenantEnabled()) {
|
|
18483
|
-
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__.
|
|
18548
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_3__.setTabTenantForSsoSwitch)(tenantId);
|
|
18484
18549
|
}
|
|
18485
18550
|
return;
|
|
18486
18551
|
}
|
|
@@ -18927,18 +18992,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18927
18992
|
/* harmony export */ isEntitlementsDeeplyEqual: () => (/* reexport safe */ _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_2__.isEntitlementsDeeplyEqual),
|
|
18928
18993
|
/* harmony export */ isMfaRequired: () => (/* binding */ isMfaRequired),
|
|
18929
18994
|
/* harmony export */ isOauthCallbackRoute: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isOauthCallbackRoute),
|
|
18995
|
+
/* harmony export */ isOnAuthPageRoute: () => (/* binding */ isOnAuthPageRoute),
|
|
18996
|
+
/* harmony export */ isOnLoginCodeCallbackRoute: () => (/* binding */ isOnLoginCodeCallbackRoute),
|
|
18930
18997
|
/* harmony export */ isResetPasswordRequired: () => (/* binding */ isResetPasswordRequired),
|
|
18931
18998
|
/* harmony export */ isSteppedUp: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.isSteppedUp),
|
|
18932
18999
|
/* harmony export */ isUsernamePayload: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.isUsernamePayload),
|
|
18933
19000
|
/* harmony export */ mapMetaDataObjectToActions: () => (/* binding */ mapMetaDataObjectToActions),
|
|
18934
19001
|
/* harmony export */ prepareIdentifiersForSignup: () => (/* binding */ prepareIdentifiersForSignup),
|
|
18935
19002
|
/* harmony export */ redirectByStepUpUrl: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.redirectByStepUpUrl),
|
|
19003
|
+
/* harmony export */ restoreTabTenantUnlessSsoCallback: () => (/* binding */ restoreTabTenantUnlessSsoCallback),
|
|
18936
19004
|
/* harmony export */ setAfterAuthRedirectUrlForStepUp: () => (/* reexport safe */ _StepUpState_helpers__WEBPACK_IMPORTED_MODULE_4__.setAfterAuthRedirectUrlForStepUp),
|
|
18937
19005
|
/* harmony export */ shouldShowPasswordRotationPromptFunc: () => (/* reexport safe */ _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__.shouldShowPasswordRotationPromptFunc)
|
|
18938
19006
|
/* harmony export */ });
|
|
18939
|
-
/* harmony import */ var
|
|
18940
|
-
/* harmony import */ var
|
|
19007
|
+
/* 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");
|
|
19008
|
+
/* 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
19009
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
|
|
19010
|
+
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
|
|
18942
19011
|
/* harmony import */ var _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LoginState/consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
|
|
18943
19012
|
/* harmony import */ var _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Entitlements/helpers */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
|
|
18944
19013
|
/* harmony import */ var _LoginState_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginState/helpers */ "../../dist/@frontegg/redux-store/auth/LoginState/helpers.js");
|
|
@@ -18998,13 +19067,64 @@ const getUri = urlStrategy => {
|
|
|
18998
19067
|
}
|
|
18999
19068
|
}
|
|
19000
19069
|
};
|
|
19070
|
+
|
|
19071
|
+
/**
|
|
19072
|
+
* The route the app shows and the page's path. With hash routing they differ: the app's pages live in the hash, but
|
|
19073
|
+
* SAML, OIDC, social and magic link callbacks come back on the path, which is where login matches them.
|
|
19074
|
+
*/
|
|
19075
|
+
const getCurrentRoutes = urlStrategy => {
|
|
19076
|
+
const hashOrPathRoute = getUri(urlStrategy);
|
|
19077
|
+
const {
|
|
19078
|
+
pathname
|
|
19079
|
+
} = window.location;
|
|
19080
|
+
return hashOrPathRoute === pathname ? [pathname] : [hashOrPathRoute, pathname];
|
|
19081
|
+
};
|
|
19082
|
+
|
|
19083
|
+
/**
|
|
19084
|
+
* On the OIDC or hosted login callback the page still has to finish the login with its code: a refresh refused before
|
|
19085
|
+
* that is not a reason to go to SSO again. On the OIDC callback the IdP would send the user straight back here, forever;
|
|
19086
|
+
* on the hosted callback a new hosted login would replace the PKCE verifier the code exchange needs.
|
|
19087
|
+
*/
|
|
19088
|
+
const isOnLoginCodeCallbackRoute = store => {
|
|
19089
|
+
var _store$root$urlStrate;
|
|
19090
|
+
const {
|
|
19091
|
+
oidcRedirectUrl,
|
|
19092
|
+
hostedLoginRedirectUrl
|
|
19093
|
+
} = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__.defaultFronteggRoutes, store.auth.routes);
|
|
19094
|
+
const currentRoutes = getCurrentRoutes((_store$root$urlStrate = store.root.urlStrategy) != null ? _store$root$urlStrate : 'path');
|
|
19095
|
+
return [oidcRedirectUrl, hostedLoginRedirectUrl].some(route => !!route && currentRoutes.some(currentRoute => currentRoute.endsWith(route)));
|
|
19096
|
+
};
|
|
19097
|
+
|
|
19098
|
+
/**
|
|
19099
|
+
* After a switch refused for SSO the tab points at the SSO tenant. Its SSO login comes back on a callback route and
|
|
19100
|
+
* keeps it; any other page load means the user didn't finish that login, so the tab goes back to its tenant.
|
|
19101
|
+
*/
|
|
19102
|
+
const restoreTabTenantUnlessSsoCallback = store => {
|
|
19103
|
+
var _store$root$urlStrate2;
|
|
19104
|
+
// Flags load in parallel with the first refresh. Recover an existing marker
|
|
19105
|
+
// before choosing that refresh's tenant, even if flags are not available yet.
|
|
19106
|
+
if (!_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.ContextHolder.for(store.root.appName).isSessionPerTenantEnabled()) {
|
|
19107
|
+
return;
|
|
19108
|
+
}
|
|
19109
|
+
const {
|
|
19110
|
+
samlCallbackUrl,
|
|
19111
|
+
oidcRedirectUrl,
|
|
19112
|
+
hostedLoginRedirectUrl
|
|
19113
|
+
} = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__.defaultFronteggRoutes, store.auth.routes);
|
|
19114
|
+
// matched like login matches its callback pages: endsWith, so a basename before the route still counts
|
|
19115
|
+
const currentRoutes = getCurrentRoutes((_store$root$urlStrate2 = store.root.urlStrategy) != null ? _store$root$urlStrate2 : 'path');
|
|
19116
|
+
const isSsoCallback = [samlCallbackUrl, oidcRedirectUrl, hostedLoginRedirectUrl].some(route => !!route && currentRoutes.some(currentRoute => currentRoute.endsWith(route)));
|
|
19117
|
+
if (!isSsoCallback) {
|
|
19118
|
+
(0,_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_7__.restoreTabTenantBeforeSsoSwitch)();
|
|
19119
|
+
}
|
|
19120
|
+
};
|
|
19001
19121
|
const prepareIdentifiersForSignup = payload => {
|
|
19002
19122
|
const {
|
|
19003
19123
|
phoneNumber,
|
|
19004
19124
|
email,
|
|
19005
19125
|
username
|
|
19006
19126
|
} = payload,
|
|
19007
|
-
finalDto = (0,
|
|
19127
|
+
finalDto = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded);
|
|
19008
19128
|
if (email != null && email.length) {
|
|
19009
19129
|
Object.assign(finalDto, {
|
|
19010
19130
|
email
|
|
@@ -19022,9 +19142,21 @@ const prepareIdentifiersForSignup = payload => {
|
|
|
19022
19142
|
}
|
|
19023
19143
|
return finalDto;
|
|
19024
19144
|
};
|
|
19145
|
+
|
|
19146
|
+
// Pages the user lands on after login or sign-up: destinations, not auth pages.
|
|
19147
|
+
const AFTER_AUTH_DESTINATION_ROUTES = ['authenticatedUrl', 'signUpSuccessUrl', 'accountSignUpSuccessUrl', 'userSignUpSuccessUrl', 'customLoginAuthenticatedUrl'];
|
|
19148
|
+
|
|
19149
|
+
/**
|
|
19150
|
+
* Whether the current route is an auth page (login, tenant chooser, social / magic link / SSO callback), not one to come
|
|
19151
|
+
* back to. Unlike isAuthRoute: after-login / sign-up destinations don't count, and endsWith lets a basename prefix it.
|
|
19152
|
+
*/
|
|
19153
|
+
const isOnAuthPageRoute = (urlStrategy, routes) => {
|
|
19154
|
+
const currentRoutes = getCurrentRoutes(urlStrategy);
|
|
19155
|
+
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)));
|
|
19156
|
+
};
|
|
19025
19157
|
const isAuthRoute = (path, routes) => {
|
|
19026
|
-
const _defaultFronteggRoute = (0,
|
|
19027
|
-
authRoutes = (0,
|
|
19158
|
+
const _defaultFronteggRoute = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _LoginState_consts__WEBPACK_IMPORTED_MODULE_6__.defaultFronteggRoutes, routes),
|
|
19159
|
+
authRoutes = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_defaultFronteggRoute, _excluded2);
|
|
19028
19160
|
return Object.values(authRoutes).includes(path);
|
|
19029
19161
|
};
|
|
19030
19162
|
|
|
@@ -21315,6 +21447,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21315
21447
|
/* harmony export */ isHostedOAuthStateExpired: () => (/* reexport safe */ _toolkit__WEBPACK_IMPORTED_MODULE_0__.isHostedOAuthStateExpired),
|
|
21316
21448
|
/* harmony export */ isMfaRequired: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isMfaRequired),
|
|
21317
21449
|
/* harmony export */ isOauthCallbackRoute: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isOauthCallbackRoute),
|
|
21450
|
+
/* harmony export */ isOnAuthPageRoute: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isOnAuthPageRoute),
|
|
21451
|
+
/* harmony export */ isOnLoginCodeCallbackRoute: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isOnLoginCodeCallbackRoute),
|
|
21318
21452
|
/* harmony export */ isPreferredMfaMethod: () => (/* reexport safe */ _toolkit__WEBPACK_IMPORTED_MODULE_0__.isPreferredMfaMethod),
|
|
21319
21453
|
/* harmony export */ isProxy: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.isProxy),
|
|
21320
21454
|
/* harmony export */ isResetPasswordRequired: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.isResetPasswordRequired),
|
|
@@ -21332,6 +21466,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21332
21466
|
/* harmony export */ refreshTokenWithRetry: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.refreshTokenWithRetry),
|
|
21333
21467
|
/* harmony export */ reportGTMEvent: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.reportGTMEvent),
|
|
21334
21468
|
/* harmony export */ resolvePreferredMfa: () => (/* reexport safe */ _toolkit__WEBPACK_IMPORTED_MODULE_0__.resolvePreferredMfa),
|
|
21469
|
+
/* harmony export */ restoreTabTenantUnlessSsoCallback: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.restoreTabTenantUnlessSsoCallback),
|
|
21335
21470
|
/* harmony export */ retry: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.retry),
|
|
21336
21471
|
/* harmony export */ retryIfNeeded: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.retryIfNeeded),
|
|
21337
21472
|
/* harmony export */ setAfterAuthRedirectUrlForStepUp: () => (/* reexport safe */ _auth_helpers__WEBPACK_IMPORTED_MODULE_3__.setAfterAuthRedirectUrlForStepUp),
|
|
@@ -21353,7 +21488,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21353
21488
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
21354
21489
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
21355
21490
|
/* 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.
|
|
21491
|
+
/** @license Frontegg v7.131.0-alpha.2
|
|
21357
21492
|
*
|
|
21358
21493
|
* This source code is licensed under the MIT license found in the
|
|
21359
21494
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -29806,9 +29941,11 @@ class AuditsApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_1__.BaseApiClien
|
|
|
29806
29941
|
__webpack_require__.r(__webpack_exports__);
|
|
29807
29942
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29808
29943
|
/* harmony export */ FRONTEGG_SEPARATE_TABS_BY_TENANT: () => (/* binding */ FRONTEGG_SEPARATE_TABS_BY_TENANT),
|
|
29944
|
+
/* harmony export */ FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH: () => (/* binding */ FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH),
|
|
29809
29945
|
/* harmony export */ USE_CURRENT_USER_TENANTS_V1_ENDPOINT_FF: () => (/* binding */ USE_CURRENT_USER_TENANTS_V1_ENDPOINT_FF)
|
|
29810
29946
|
/* harmony export */ });
|
|
29811
29947
|
const FRONTEGG_SEPARATE_TABS_BY_TENANT = 'FRONTEGG_SEPARATE_TABS_BY_TENANT';
|
|
29948
|
+
const FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH = 'FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH';
|
|
29812
29949
|
/**
|
|
29813
29950
|
* use current user tenant v1 feature flag
|
|
29814
29951
|
*/
|
|
@@ -29903,6 +30040,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29903
30040
|
/* harmony export */ getTabTenantFromSessionStorage: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.getTabTenantFromSessionStorage),
|
|
29904
30041
|
/* harmony export */ isEnforceSsoOnTenantAccessEnabled: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.isEnforceSsoOnTenantAccessEnabled),
|
|
29905
30042
|
/* harmony export */ removeTabTenantFromSessionStorage: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.removeTabTenantFromSessionStorage),
|
|
30043
|
+
/* harmony export */ restoreTabTenantBeforeSsoSwitch: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.restoreTabTenantBeforeSsoSwitch),
|
|
30044
|
+
/* harmony export */ setTabTenantForSsoSwitch: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.setTabTenantForSsoSwitch),
|
|
29906
30045
|
/* harmony export */ setTabTenantInSessionStorage: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_5__.setTabTenantInSessionStorage)
|
|
29907
30046
|
/* harmony export */ });
|
|
29908
30047
|
/* 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 +30908,9 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
|
|
|
30769
30908
|
}
|
|
30770
30909
|
if (user.tenantId) {
|
|
30771
30910
|
(0,_utils__WEBPACK_IMPORTED_MODULE_5__.setTabTenantInSessionStorage)(user.tenantId);
|
|
30911
|
+
// A confirmed session consumes any pending switch, including when the
|
|
30912
|
+
// callback finishes before feature flags have loaded.
|
|
30913
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_5__.clearTabTenantBeforeSsoSwitch)();
|
|
30772
30914
|
// The server's activeTenant may reflect a different tab's tenant switch.
|
|
30773
30915
|
// Correct it to match the JWT's tenant for this tab.
|
|
30774
30916
|
const matchingTenant = currentUserTenants.tenants.find(t => t.tenantId === user.tenantId);
|
|
@@ -31021,11 +31163,14 @@ let RestrictionType;
|
|
|
31021
31163
|
"use strict";
|
|
31022
31164
|
__webpack_require__.r(__webpack_exports__);
|
|
31023
31165
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
31166
|
+
/* harmony export */ clearTabTenantBeforeSsoSwitch: () => (/* binding */ clearTabTenantBeforeSsoSwitch),
|
|
31024
31167
|
/* harmony export */ executeConditionalPromise: () => (/* binding */ executeConditionalPromise),
|
|
31025
31168
|
/* harmony export */ getCurrentUserTenantsFunction: () => (/* binding */ getCurrentUserTenantsFunction),
|
|
31026
31169
|
/* harmony export */ getTabTenantFromSessionStorage: () => (/* binding */ getTabTenantFromSessionStorage),
|
|
31027
31170
|
/* harmony export */ isEnforceSsoOnTenantAccessEnabled: () => (/* binding */ isEnforceSsoOnTenantAccessEnabled),
|
|
31028
31171
|
/* harmony export */ removeTabTenantFromSessionStorage: () => (/* binding */ removeTabTenantFromSessionStorage),
|
|
31172
|
+
/* harmony export */ restoreTabTenantBeforeSsoSwitch: () => (/* binding */ restoreTabTenantBeforeSsoSwitch),
|
|
31173
|
+
/* harmony export */ setTabTenantForSsoSwitch: () => (/* binding */ setTabTenantForSsoSwitch),
|
|
31029
31174
|
/* harmony export */ setTabTenantInSessionStorage: () => (/* binding */ setTabTenantInSessionStorage)
|
|
31030
31175
|
/* harmony export */ });
|
|
31031
31176
|
/* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ContextHolder */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
|
|
@@ -31061,6 +31206,31 @@ function isEnforceSsoOnTenantAccessEnabled(appName) {
|
|
|
31061
31206
|
function removeTabTenantFromSessionStorage() {
|
|
31062
31207
|
sessionStorage.removeItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_SEPARATE_TABS_BY_TENANT);
|
|
31063
31208
|
}
|
|
31209
|
+
|
|
31210
|
+
/**
|
|
31211
|
+
* Points the tab at the tenant whose SSO the user is sent to after a refused switch, keeping the tenant it had:
|
|
31212
|
+
* a page load that isn't the SSO login's callback puts it back (see restoreTabTenantBeforeSsoSwitch).
|
|
31213
|
+
*/
|
|
31214
|
+
function setTabTenantForSsoSwitch(tenantId) {
|
|
31215
|
+
var _sessionStorage$getIt;
|
|
31216
|
+
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 : '');
|
|
31217
|
+
setTabTenantInSessionStorage(tenantId);
|
|
31218
|
+
}
|
|
31219
|
+
|
|
31220
|
+
/** Puts back the tab tenant of an SSO switch the user didn't finish. */
|
|
31221
|
+
function restoreTabTenantBeforeSsoSwitch() {
|
|
31222
|
+
const previousTenantId = sessionStorage.getItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH);
|
|
31223
|
+
if (previousTenantId === null) {
|
|
31224
|
+
return;
|
|
31225
|
+
}
|
|
31226
|
+
clearTabTenantBeforeSsoSwitch();
|
|
31227
|
+
previousTenantId ? setTabTenantInSessionStorage(previousTenantId) : removeTabTenantFromSessionStorage();
|
|
31228
|
+
}
|
|
31229
|
+
|
|
31230
|
+
/** The tab got a session: nothing is left to put back. */
|
|
31231
|
+
function clearTabTenantBeforeSsoSwitch() {
|
|
31232
|
+
sessionStorage.removeItem(_constants__WEBPACK_IMPORTED_MODULE_0__.FRONTEGG_TAB_TENANT_BEFORE_SSO_SWITCH);
|
|
31233
|
+
}
|
|
31064
31234
|
function getTabTenantFromSessionStorage(appName) {
|
|
31065
31235
|
if (!_ContextHolder__WEBPACK_IMPORTED_MODULE_3__.ContextHolder.for(appName).isSessionPerTenantEnabled()) {
|
|
31066
31236
|
return null;
|
|
@@ -32050,6 +32220,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32050
32220
|
/* harmony export */ isEnforceSsoOnTenantAccessEnabled: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.isEnforceSsoOnTenantAccessEnabled),
|
|
32051
32221
|
/* harmony export */ providersArray: () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_14__.providersArray),
|
|
32052
32222
|
/* harmony export */ removeTabTenantFromSessionStorage: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.removeTabTenantFromSessionStorage),
|
|
32223
|
+
/* harmony export */ restoreTabTenantBeforeSsoSwitch: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.restoreTabTenantBeforeSsoSwitch),
|
|
32224
|
+
/* harmony export */ setTabTenantForSsoSwitch: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.setTabTenantForSsoSwitch),
|
|
32053
32225
|
/* harmony export */ setTabTenantInSessionStorage: () => (/* reexport safe */ _auth__WEBPACK_IMPORTED_MODULE_3__.setTabTenantInSessionStorage)
|
|
32054
32226
|
/* harmony export */ });
|
|
32055
32227
|
/* harmony import */ var _auth_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth/enums */ "../../dist/@frontegg/rest-api/auth/enums.js");
|
|
@@ -32101,7 +32273,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32101
32273
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
32102
32274
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
32103
32275
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
32104
|
-
/** @license Frontegg v7.131.0-alpha.
|
|
32276
|
+
/** @license Frontegg v7.131.0-alpha.2
|
|
32105
32277
|
*
|
|
32106
32278
|
* This source code is licensed under the MIT license found in the
|
|
32107
32279
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -34956,7 +35128,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34956
35128
|
/* harmony export */ });
|
|
34957
35129
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
34958
35130
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
34959
|
-
/** @license Frontegg v7.131.0-alpha.
|
|
35131
|
+
/** @license Frontegg v7.131.0-alpha.2
|
|
34960
35132
|
*
|
|
34961
35133
|
* This source code is licensed under the MIT license found in the
|
|
34962
35134
|
* LICENSE file in the root directory of this source tree.
|