@frontegg/js 7.48.0 → 7.50.0-alpha.0
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 +123 -6
- 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.50.0-alpha.0",
|
|
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.50.0-alpha.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -1625,7 +1625,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1625
1625
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1626
1626
|
/* harmony export */ });
|
|
1627
1627
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1628
|
-
cdnVersion: '7.
|
|
1628
|
+
cdnVersion: '7.50.0-alpha.0'
|
|
1629
1629
|
});
|
|
1630
1630
|
|
|
1631
1631
|
/***/ }),
|
|
@@ -12263,6 +12263,11 @@ const _excluded = ["callback"];
|
|
|
12263
12263
|
tableState: inactiveUsersTable
|
|
12264
12264
|
}, payload));
|
|
12265
12265
|
};
|
|
12266
|
+
const markSecurityCenterStateAsChanged = (changed = true) => {
|
|
12267
|
+
setSecurityCenterState({
|
|
12268
|
+
hasSecurityChanges: changed
|
|
12269
|
+
});
|
|
12270
|
+
};
|
|
12266
12271
|
return {
|
|
12267
12272
|
setSecurityCenterState,
|
|
12268
12273
|
resetSecurityCenterState,
|
|
@@ -12274,7 +12279,8 @@ const _excluded = ["callback"];
|
|
|
12274
12279
|
sendBulkResetBreachedPasswordEmails,
|
|
12275
12280
|
loadBreachedPasswordUsers,
|
|
12276
12281
|
loadUnenrolledMfaUsers,
|
|
12277
|
-
loadInactiveUsers
|
|
12282
|
+
loadInactiveUsers,
|
|
12283
|
+
markSecurityCenterStateAsChanged
|
|
12278
12284
|
};
|
|
12279
12285
|
});
|
|
12280
12286
|
|
|
@@ -12323,6 +12329,7 @@ const initialState = {
|
|
|
12323
12329
|
errors: {},
|
|
12324
12330
|
recommendations: undefined,
|
|
12325
12331
|
insights: undefined,
|
|
12332
|
+
hasSecurityChanges: false,
|
|
12326
12333
|
score: 0,
|
|
12327
12334
|
breachedPasswordUsersTable: {
|
|
12328
12335
|
users: [],
|
|
@@ -12376,11 +12383,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12376
12383
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
12377
12384
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
|
|
12378
12385
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/state.js");
|
|
12386
|
+
/* harmony import */ var _helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers/timeConvertors */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/timeConvertors.js");
|
|
12379
12387
|
|
|
12380
12388
|
|
|
12381
12389
|
const _excluded = ["callback"],
|
|
12382
12390
|
_excluded2 = ["callback"],
|
|
12383
|
-
_excluded3 = ["callback"]
|
|
12391
|
+
_excluded3 = ["callback"],
|
|
12392
|
+
_excluded4 = ["callback"];
|
|
12393
|
+
|
|
12384
12394
|
|
|
12385
12395
|
|
|
12386
12396
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
|
|
@@ -12469,6 +12479,9 @@ const _excluded = ["callback"],
|
|
|
12469
12479
|
const setSecurityPolicyVendorPasswordHistoryState = state => {
|
|
12470
12480
|
Object.assign(store.auth.securityPolicyState.vendorPasswordHistoryPolicy, state);
|
|
12471
12481
|
};
|
|
12482
|
+
const setSecurityPolicyPasswordRotationState = state => {
|
|
12483
|
+
Object.assign(store.auth.securityPolicyState.passwordRotationPolicy, state);
|
|
12484
|
+
};
|
|
12472
12485
|
const setSecurityPolicyPasswordState = state => {
|
|
12473
12486
|
Object.assign(store.auth.securityPolicyState.passwordPolicy, state);
|
|
12474
12487
|
};
|
|
@@ -12675,6 +12688,30 @@ const _excluded = ["callback"],
|
|
|
12675
12688
|
});
|
|
12676
12689
|
}
|
|
12677
12690
|
};
|
|
12691
|
+
const loadSecurityPolicyPasswordRotation = async () => {
|
|
12692
|
+
setSecurityPolicyPasswordRotationState({
|
|
12693
|
+
loading: true,
|
|
12694
|
+
error: null
|
|
12695
|
+
});
|
|
12696
|
+
try {
|
|
12697
|
+
const policy = await api.securityPolicy.getPasswordRotationPolicy();
|
|
12698
|
+
const vendorPolicy = await api.securityPolicy.getVendorPasswordRotationPolicy();
|
|
12699
|
+
policy.notificationPeriod = (0,_helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__.minutesToDays)(policy.notificationPeriod);
|
|
12700
|
+
const vendorPolicyInDays = (0,_helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__.minutesToDays)(vendorPolicy.rotationPeriod);
|
|
12701
|
+
const policyInDays = (0,_helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__.minutesToDays)(policy.rotationPeriod);
|
|
12702
|
+
policy.rotationPeriod = Math.min(vendorPolicyInDays, policyInDays);
|
|
12703
|
+
policy.vendorRotationPeriod = vendorPolicyInDays;
|
|
12704
|
+
setSecurityPolicyPasswordRotationState({
|
|
12705
|
+
policy,
|
|
12706
|
+
loading: false
|
|
12707
|
+
});
|
|
12708
|
+
} catch (e) {
|
|
12709
|
+
setSecurityPolicyPasswordRotationState({
|
|
12710
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e),
|
|
12711
|
+
loading: false
|
|
12712
|
+
});
|
|
12713
|
+
}
|
|
12714
|
+
};
|
|
12678
12715
|
const loadPublicAuthStrategiesPolicy = async payload => {
|
|
12679
12716
|
setSecurityPolicyAuthStrategyPublicState({
|
|
12680
12717
|
loading: true,
|
|
@@ -12770,6 +12807,33 @@ const _excluded = ["callback"],
|
|
|
12770
12807
|
callback == null ? void 0 : callback(null, e);
|
|
12771
12808
|
}
|
|
12772
12809
|
};
|
|
12810
|
+
const saveSecurityPolicyPasswordRotation = async payload => {
|
|
12811
|
+
const {
|
|
12812
|
+
callback
|
|
12813
|
+
} = payload,
|
|
12814
|
+
newSecurityPolicy = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(payload, _excluded4);
|
|
12815
|
+
setSecurityPolicyPasswordRotationState({
|
|
12816
|
+
saving: true,
|
|
12817
|
+
error: null
|
|
12818
|
+
});
|
|
12819
|
+
try {
|
|
12820
|
+
const policy = await api.securityPolicy.savePasswordRotationPolicy((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, newSecurityPolicy, {
|
|
12821
|
+
notificationPeriod: (0,_helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__.daysToMinutes)(newSecurityPolicy.notificationPeriod),
|
|
12822
|
+
rotationPeriod: (0,_helpers_timeConvertors__WEBPACK_IMPORTED_MODULE_5__.daysToMinutes)(newSecurityPolicy.rotationPeriod)
|
|
12823
|
+
}));
|
|
12824
|
+
setSecurityPolicyPasswordRotationState({
|
|
12825
|
+
policy: newSecurityPolicy,
|
|
12826
|
+
saving: false
|
|
12827
|
+
});
|
|
12828
|
+
callback == null ? void 0 : callback(policy);
|
|
12829
|
+
} catch (e) {
|
|
12830
|
+
setSecurityPolicyPasswordRotationState({
|
|
12831
|
+
saving: false,
|
|
12832
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e)
|
|
12833
|
+
});
|
|
12834
|
+
callback == null ? void 0 : callback(null, e);
|
|
12835
|
+
}
|
|
12836
|
+
};
|
|
12773
12837
|
return {
|
|
12774
12838
|
// reducers
|
|
12775
12839
|
setSecurityPolicyState,
|
|
@@ -12782,6 +12846,7 @@ const _excluded = ["callback"],
|
|
|
12782
12846
|
setSecurityPolicyCaptchaState,
|
|
12783
12847
|
setSecurityPolicyPasswordHistoryState,
|
|
12784
12848
|
setSecurityPolicyVendorPasswordHistoryState,
|
|
12849
|
+
setSecurityPolicyPasswordRotationState,
|
|
12785
12850
|
resetSecurityPolicyState,
|
|
12786
12851
|
setSecurityPolicyPasswordState,
|
|
12787
12852
|
setSecurityPolicyAuthStrategyPublicState,
|
|
@@ -12797,10 +12862,12 @@ const _excluded = ["callback"],
|
|
|
12797
12862
|
loadSecurityPolicyCaptcha,
|
|
12798
12863
|
loadSecurityPolicyPasswordHistory,
|
|
12799
12864
|
loadSecurityPolicyVendorPasswordHistory,
|
|
12865
|
+
loadSecurityPolicyPasswordRotation,
|
|
12800
12866
|
loadPublicAuthStrategiesPolicy,
|
|
12801
12867
|
saveSecurityPolicyMfa,
|
|
12802
12868
|
saveSecurityPolicyLockout,
|
|
12803
12869
|
saveSecurityPolicyPasswordHistory,
|
|
12870
|
+
saveSecurityPolicyPasswordRotation,
|
|
12804
12871
|
// protected
|
|
12805
12872
|
__getSecurityPolicyPublicStateWithCustomLogin
|
|
12806
12873
|
};
|
|
@@ -12808,6 +12875,44 @@ const _excluded = ["callback"],
|
|
|
12808
12875
|
|
|
12809
12876
|
/***/ }),
|
|
12810
12877
|
|
|
12878
|
+
/***/ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/consts.js":
|
|
12879
|
+
/*!************************************************************************************!*\
|
|
12880
|
+
!*** ../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/consts.js ***!
|
|
12881
|
+
\************************************************************************************/
|
|
12882
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12883
|
+
|
|
12884
|
+
"use strict";
|
|
12885
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12886
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12887
|
+
/* harmony export */ oneDayInMinutes: () => (/* binding */ oneDayInMinutes)
|
|
12888
|
+
/* harmony export */ });
|
|
12889
|
+
const oneDayInMinutes = 24 * 60;
|
|
12890
|
+
|
|
12891
|
+
/***/ }),
|
|
12892
|
+
|
|
12893
|
+
/***/ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/timeConvertors.js":
|
|
12894
|
+
/*!****************************************************************************************************!*\
|
|
12895
|
+
!*** ../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/helpers/timeConvertors.js ***!
|
|
12896
|
+
\****************************************************************************************************/
|
|
12897
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12898
|
+
|
|
12899
|
+
"use strict";
|
|
12900
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12901
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12902
|
+
/* harmony export */ daysToMinutes: () => (/* binding */ daysToMinutes),
|
|
12903
|
+
/* harmony export */ minutesToDays: () => (/* binding */ minutesToDays)
|
|
12904
|
+
/* harmony export */ });
|
|
12905
|
+
/* harmony import */ var _consts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../consts */ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/consts.js");
|
|
12906
|
+
|
|
12907
|
+
const minutesToDays = minutes => {
|
|
12908
|
+
return Math.floor(minutes / _consts__WEBPACK_IMPORTED_MODULE_0__.oneDayInMinutes);
|
|
12909
|
+
};
|
|
12910
|
+
const daysToMinutes = days => {
|
|
12911
|
+
return days * _consts__WEBPACK_IMPORTED_MODULE_0__.oneDayInMinutes;
|
|
12912
|
+
};
|
|
12913
|
+
|
|
12914
|
+
/***/ }),
|
|
12915
|
+
|
|
12811
12916
|
/***/ "../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/state.js":
|
|
12812
12917
|
/*!***********************************************************************************!*\
|
|
12813
12918
|
!*** ../../dist/@frontegg/redux-store/auth/Security/SecurityPolicyState/state.js ***!
|
|
@@ -12855,6 +12960,9 @@ const initialState = {
|
|
|
12855
12960
|
},
|
|
12856
12961
|
publicAuthStrategyPolicy: {
|
|
12857
12962
|
loading: true
|
|
12963
|
+
},
|
|
12964
|
+
passwordRotationPolicy: {
|
|
12965
|
+
loading: true
|
|
12858
12966
|
}
|
|
12859
12967
|
};
|
|
12860
12968
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overrideState => (0,_toolkit_proxy__WEBPACK_IMPORTED_MODULE_0__.createProxy)(initialState, overrideState));
|
|
@@ -17936,7 +18044,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17936
18044
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
17937
18045
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
17938
18046
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
17939
|
-
/** @license Frontegg v7.
|
|
18047
|
+
/** @license Frontegg v7.50.0-alpha.0
|
|
17940
18048
|
*
|
|
17941
18049
|
* This source code is licensed under the MIT license found in the
|
|
17942
18050
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -26909,6 +27017,15 @@ class SecurityPolicyApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_0__.Base
|
|
|
26909
27017
|
return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.configurations.v1}/password-history-policy`, body);
|
|
26910
27018
|
}
|
|
26911
27019
|
};
|
|
27020
|
+
this.getPasswordRotationPolicy = async () => {
|
|
27021
|
+
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.configurations.v1}/password-rotation`);
|
|
27022
|
+
};
|
|
27023
|
+
this.getVendorPasswordRotationPolicy = async () => {
|
|
27024
|
+
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.configurations.v1}/password-rotation/vendor`);
|
|
27025
|
+
};
|
|
27026
|
+
this.savePasswordRotationPolicy = async body => {
|
|
27027
|
+
return this.post(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.configurations.v1}/password-rotation`, body);
|
|
27028
|
+
};
|
|
26912
27029
|
this.getPasswordConfigPolicy = async () => {
|
|
26913
27030
|
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_1__.urls.identity.configurations.v1}/password`);
|
|
26914
27031
|
};
|
|
@@ -27971,7 +28088,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27971
28088
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
27972
28089
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
27973
28090
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
27974
|
-
/** @license Frontegg v7.
|
|
28091
|
+
/** @license Frontegg v7.50.0-alpha.0
|
|
27975
28092
|
*
|
|
27976
28093
|
* This source code is licensed under the MIT license found in the
|
|
27977
28094
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30601,7 +30718,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30601
30718
|
/* harmony export */ });
|
|
30602
30719
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
30603
30720
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
30604
|
-
/** @license Frontegg v7.
|
|
30721
|
+
/** @license Frontegg v7.50.0-alpha.0
|
|
30605
30722
|
*
|
|
30606
30723
|
* This source code is licensed under the MIT license found in the
|
|
30607
30724
|
* LICENSE file in the root directory of this source tree.
|