@frontegg/js 7.56.0 → 7.57.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 +63 -50
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
package/index.js
CHANGED
package/node/index.js
CHANGED
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.57.0-alpha.1",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/types": "7.
|
|
9
|
+
"@frontegg/types": "7.57.0-alpha.1"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -1628,7 +1628,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1628
1628
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1629
1629
|
/* harmony export */ });
|
|
1630
1630
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1631
|
-
cdnVersion: '7.
|
|
1631
|
+
cdnVersion: '7.57.0-alpha.1'
|
|
1632
1632
|
});
|
|
1633
1633
|
|
|
1634
1634
|
/***/ }),
|
|
@@ -2592,7 +2592,7 @@ const _excluded = ["user"],
|
|
|
2592
2592
|
}, rest), {
|
|
2593
2593
|
isAuthenticated: true
|
|
2594
2594
|
});
|
|
2595
|
-
await (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.delay)(
|
|
2595
|
+
await (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.delay)(5000);
|
|
2596
2596
|
await actions.afterAuthNavigation();
|
|
2597
2597
|
resetActivateState();
|
|
2598
2598
|
}
|
|
@@ -5489,7 +5489,7 @@ const _excluded = ["callback", "error"],
|
|
|
5489
5489
|
onRedirectTo
|
|
5490
5490
|
} = store.auth;
|
|
5491
5491
|
const invitationToken = url.searchParams.get('invitationToken');
|
|
5492
|
-
const redirectRoutes = [routes.socialLoginCallbackUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl];
|
|
5492
|
+
const redirectRoutes = [routes.socialLoginCallbackUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl, routes.magicLinkCallbackUrl];
|
|
5493
5493
|
if (!invitationToken) {
|
|
5494
5494
|
redirectRoutes.push(routes.loginUrl, routes.signUpUrl);
|
|
5495
5495
|
}
|
|
@@ -6088,6 +6088,13 @@ const _excluded = ["callback", "error"],
|
|
|
6088
6088
|
actions.setAuthState({
|
|
6089
6089
|
isAuthenticated: true
|
|
6090
6090
|
});
|
|
6091
|
+
if (_payload.type === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_10__.AuthStrategyEnum.MagicLink) {
|
|
6092
|
+
actions.setLoginState({
|
|
6093
|
+
step: _interfaces__WEBPACK_IMPORTED_MODULE_4__.LoginStep.magicLinkPostLoginSuccess,
|
|
6094
|
+
loading: false
|
|
6095
|
+
});
|
|
6096
|
+
await (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.delay)(5000);
|
|
6097
|
+
}
|
|
6091
6098
|
await actions.afterAuthNavigation();
|
|
6092
6099
|
}
|
|
6093
6100
|
} else {
|
|
@@ -7541,6 +7548,7 @@ let LoginStep;
|
|
|
7541
7548
|
LoginStep["promptPasskeys"] = "promptPasskeys";
|
|
7542
7549
|
LoginStep["breachedPassword"] = "breachedPassword";
|
|
7543
7550
|
LoginStep["breachedPasswordSuccess"] = "breachedPasswordSuccess";
|
|
7551
|
+
LoginStep["magicLinkPostLoginSuccess"] = "magicLinkPostLoginSuccess";
|
|
7544
7552
|
})(LoginStep || (LoginStep = {}));
|
|
7545
7553
|
let LoginFlow;
|
|
7546
7554
|
(function (LoginFlow) {
|
|
@@ -12396,8 +12404,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12396
12404
|
/* 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");
|
|
12397
12405
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
12398
12406
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
|
|
12407
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers/helpers */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/helpers.js");
|
|
12399
12408
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/state.js");
|
|
12400
|
-
/* harmony import */ var _helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers/timeConvertors */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/timeConvertors.js");
|
|
12401
12409
|
|
|
12402
12410
|
|
|
12403
12411
|
const _excluded = ["callback"],
|
|
@@ -12708,15 +12716,22 @@ const _excluded = ["callback"],
|
|
|
12708
12716
|
error: null
|
|
12709
12717
|
});
|
|
12710
12718
|
try {
|
|
12711
|
-
const
|
|
12712
|
-
const
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12719
|
+
const tenantPasswordRotationConfig = await api.securityPolicy.getPasswordRotationPolicy();
|
|
12720
|
+
const vendorPasswordRotationConfig = await api.securityPolicy.getVendorPasswordRotationPolicy();
|
|
12721
|
+
const data = {
|
|
12722
|
+
passwordRotationVendorConfig: vendorPasswordRotationConfig
|
|
12723
|
+
};
|
|
12724
|
+
if (tenantPasswordRotationConfig) {
|
|
12725
|
+
if (vendorPasswordRotationConfig != null && vendorPasswordRotationConfig.isActive) {
|
|
12726
|
+
data.passwordRotationTenantConfig = tenantPasswordRotationConfig != null && tenantPasswordRotationConfig.isActive ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, tenantPasswordRotationConfig, {
|
|
12727
|
+
rotationPeriod: (0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__.getTenantRotationPeriod)(vendorPasswordRotationConfig.rotationPeriod, tenantPasswordRotationConfig.rotationPeriod)
|
|
12728
|
+
}) : vendorPasswordRotationConfig;
|
|
12729
|
+
} else {
|
|
12730
|
+
data.passwordRotationTenantConfig = tenantPasswordRotationConfig;
|
|
12731
|
+
}
|
|
12732
|
+
}
|
|
12718
12733
|
setSecurityPolicyPasswordRotationState({
|
|
12719
|
-
policy,
|
|
12734
|
+
policy: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, data),
|
|
12720
12735
|
loading: false
|
|
12721
12736
|
});
|
|
12722
12737
|
} catch (e) {
|
|
@@ -12831,15 +12846,12 @@ const _excluded = ["callback"],
|
|
|
12831
12846
|
error: null
|
|
12832
12847
|
});
|
|
12833
12848
|
try {
|
|
12834
|
-
|
|
12835
|
-
notificationPeriod: (0,_helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__.daysToMinutes)(newSecurityPolicy.notificationPeriod),
|
|
12836
|
-
rotationPeriod: (0,_helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__.daysToMinutes)(newSecurityPolicy.rotationPeriod)
|
|
12837
|
-
}));
|
|
12849
|
+
await api.securityPolicy.savePasswordRotationPolicy(newSecurityPolicy.passwordRotationTenantConfig || {});
|
|
12838
12850
|
setSecurityPolicyPasswordRotationState({
|
|
12839
12851
|
policy: newSecurityPolicy,
|
|
12840
12852
|
saving: false
|
|
12841
12853
|
});
|
|
12842
|
-
callback == null ? void 0 : callback(
|
|
12854
|
+
callback == null ? void 0 : callback(newSecurityPolicy);
|
|
12843
12855
|
} catch (e) {
|
|
12844
12856
|
setSecurityPolicyPasswordRotationState({
|
|
12845
12857
|
saving: false,
|
|
@@ -12889,41 +12901,42 @@ const _excluded = ["callback"],
|
|
|
12889
12901
|
|
|
12890
12902
|
/***/ }),
|
|
12891
12903
|
|
|
12892
|
-
/***/ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/
|
|
12893
|
-
|
|
12894
|
-
!*** ../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/
|
|
12895
|
-
|
|
12896
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12897
|
-
|
|
12898
|
-
"use strict";
|
|
12899
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12900
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12901
|
-
/* harmony export */ oneDayInMinutes: () => (/* binding */ oneDayInMinutes)
|
|
12902
|
-
/* harmony export */ });
|
|
12903
|
-
const oneDayInMinutes = 24 * 60;
|
|
12904
|
-
|
|
12905
|
-
/***/ }),
|
|
12906
|
-
|
|
12907
|
-
/***/ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/timeConvertors.js":
|
|
12908
|
-
/*!****************************************************************************************************!*\
|
|
12909
|
-
!*** ../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/timeConvertors.js ***!
|
|
12910
|
-
\****************************************************************************************************/
|
|
12904
|
+
/***/ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/helpers.js":
|
|
12905
|
+
/*!*********************************************************************************************!*\
|
|
12906
|
+
!*** ../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/helpers.js ***!
|
|
12907
|
+
\*********************************************************************************************/
|
|
12911
12908
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12912
12909
|
|
|
12913
12910
|
"use strict";
|
|
12914
12911
|
__webpack_require__.r(__webpack_exports__);
|
|
12915
12912
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12916
|
-
/* harmony export */
|
|
12917
|
-
/* harmony export */ minutesToDays: () => (/* binding */ minutesToDays)
|
|
12913
|
+
/* harmony export */ getTenantRotationPeriod: () => (/* binding */ getTenantRotationPeriod)
|
|
12918
12914
|
/* harmony export */ });
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12915
|
+
/**
|
|
12916
|
+
* Calculates the tenant rotation period.
|
|
12917
|
+
*
|
|
12918
|
+
* Returns the minimum of vendor and tenant rotation periods if both are provided.
|
|
12919
|
+
* If only one is provided, returns that one. Returns undefined if neither is provided.
|
|
12920
|
+
* This calculation is made to get the stricter of the two rotation periods.
|
|
12921
|
+
*
|
|
12922
|
+
* @param vendorRotationPeriod - Vendor's rotation period (optional).
|
|
12923
|
+
* @param tenantRotationPeriod - Tenant's rotation period (optional).
|
|
12924
|
+
* @returns The rotation period, or undefined if neither is provided.
|
|
12925
|
+
*/
|
|
12926
|
+
function getTenantRotationPeriod(vendorRotationPeriod, tenantRotationPeriod) {
|
|
12927
|
+
const tenantRotationExists = tenantRotationPeriod !== null && tenantRotationPeriod !== undefined;
|
|
12928
|
+
const vendorRotationExists = vendorRotationPeriod !== null && vendorRotationPeriod !== undefined;
|
|
12929
|
+
if (!tenantRotationExists && !vendorRotationExists) {
|
|
12930
|
+
return;
|
|
12931
|
+
}
|
|
12932
|
+
if (!tenantRotationExists) {
|
|
12933
|
+
return vendorRotationPeriod;
|
|
12934
|
+
}
|
|
12935
|
+
if (!vendorRotationExists) {
|
|
12936
|
+
return tenantRotationPeriod;
|
|
12937
|
+
}
|
|
12938
|
+
return Math.min(vendorRotationPeriod, tenantRotationPeriod);
|
|
12939
|
+
}
|
|
12927
12940
|
|
|
12928
12941
|
/***/ }),
|
|
12929
12942
|
|
|
@@ -18072,7 +18085,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18072
18085
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
18073
18086
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
18074
18087
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
18075
|
-
/** @license Frontegg v7.
|
|
18088
|
+
/** @license Frontegg v7.57.0-alpha.1
|
|
18076
18089
|
*
|
|
18077
18090
|
* This source code is licensed under the MIT license found in the
|
|
18078
18091
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -26992,8 +27005,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26992
27005
|
/* harmony export */ SecurityPolicyApi: () => (/* binding */ SecurityPolicyApi),
|
|
26993
27006
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
26994
27007
|
/* harmony export */ });
|
|
26995
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
26996
27008
|
/* harmony import */ var _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../BaseApiClient */ "../../dist/@frontegg/rest-api/BaseApiClient.js");
|
|
27009
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
26997
27010
|
|
|
26998
27011
|
|
|
26999
27012
|
class SecurityPolicyApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__.BaseApiClient {
|
|
@@ -28119,7 +28132,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28119
28132
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
28120
28133
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
28121
28134
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
28122
|
-
/** @license Frontegg v7.
|
|
28135
|
+
/** @license Frontegg v7.57.0-alpha.1
|
|
28123
28136
|
*
|
|
28124
28137
|
* This source code is licensed under the MIT license found in the
|
|
28125
28138
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30749,7 +30762,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30749
30762
|
/* harmony export */ });
|
|
30750
30763
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
30751
30764
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
30752
|
-
/** @license Frontegg v7.
|
|
30765
|
+
/** @license Frontegg v7.57.0-alpha.1
|
|
30753
30766
|
*
|
|
30754
30767
|
* This source code is licensed under the MIT license found in the
|
|
30755
30768
|
* LICENSE file in the root directory of this source tree.
|