@frontegg/js 7.124.0-alpha.1 → 7.125.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/FronteggApp/FronteggApp.js +5 -2
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +5 -2
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +92 -40
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -19,7 +19,9 @@ export var FronteggApp = /*#__PURE__*/function () {
|
|
|
19
19
|
var _this = this,
|
|
20
20
|
_this$options$authOpt3,
|
|
21
21
|
_options$authOptions,
|
|
22
|
-
_options$authOptions2
|
|
22
|
+
_options$authOptions2,
|
|
23
|
+
_options$authOptions3,
|
|
24
|
+
_options$authOptions4;
|
|
23
25
|
var iframeRendering = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
24
26
|
var allowMultipleRenderers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
25
27
|
_classCallCheck(this, FronteggApp);
|
|
@@ -478,9 +480,10 @@ export var FronteggApp = /*#__PURE__*/function () {
|
|
|
478
480
|
var contextHolder = ContextHolder["for"](appName);
|
|
479
481
|
contextHolder.setAppName(appName);
|
|
480
482
|
this.setEntitlementsOptions(_options.entitlementsOptions);
|
|
483
|
+
// Tenant selection needs the user and tenants loaded, so it takes precedence over skipUserLoading
|
|
481
484
|
this.setSessionContext({
|
|
482
485
|
enableSessionPerTenant: (_options$authOptions = _options.authOptions) == null ? void 0 : _options$authOptions.enableSessionPerTenant,
|
|
483
|
-
skipUserLoading: (_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading
|
|
486
|
+
skipUserLoading: ((_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading) && ((_options$authOptions3 = _options.authOptions) == null ? void 0 : (_options$authOptions4 = _options$authOptions3.tenantSelection) == null ? void 0 : _options$authOptions4.enabled) !== true
|
|
484
487
|
});
|
|
485
488
|
|
|
486
489
|
// pay attention: basename is used from the router base name, then if it's empty it will be the frontegg options basename
|
package/index.js
CHANGED
|
@@ -26,7 +26,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
26
26
|
var _this = this,
|
|
27
27
|
_this$options$authOpt3,
|
|
28
28
|
_options$authOptions,
|
|
29
|
-
_options$authOptions2
|
|
29
|
+
_options$authOptions2,
|
|
30
|
+
_options$authOptions3,
|
|
31
|
+
_options$authOptions4;
|
|
30
32
|
var iframeRendering = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
31
33
|
var allowMultipleRenderers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
32
34
|
(0, _classCallCheck2["default"])(this, FronteggApp);
|
|
@@ -485,9 +487,10 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
485
487
|
var contextHolder = FronteggRestApi.ContextHolder["for"](appName);
|
|
486
488
|
contextHolder.setAppName(appName);
|
|
487
489
|
this.setEntitlementsOptions(_options.entitlementsOptions);
|
|
490
|
+
// Tenant selection needs the user and tenants loaded, so it takes precedence over skipUserLoading
|
|
488
491
|
this.setSessionContext({
|
|
489
492
|
enableSessionPerTenant: (_options$authOptions = _options.authOptions) == null ? void 0 : _options$authOptions.enableSessionPerTenant,
|
|
490
|
-
skipUserLoading: (_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading
|
|
493
|
+
skipUserLoading: ((_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading) && ((_options$authOptions3 = _options.authOptions) == null ? void 0 : (_options$authOptions4 = _options$authOptions3.tenantSelection) == null ? void 0 : _options$authOptions4.enabled) !== true
|
|
491
494
|
});
|
|
492
495
|
|
|
493
496
|
// pay attention: basename is used from the router base name, then if it's empty it will be the frontegg options basename
|
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.125.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.125.0-alpha.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -383,7 +383,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
383
383
|
var _this = this,
|
|
384
384
|
_this$options$authOpt3,
|
|
385
385
|
_options$authOptions,
|
|
386
|
-
_options$authOptions2
|
|
386
|
+
_options$authOptions2,
|
|
387
|
+
_options$authOptions3,
|
|
388
|
+
_options$authOptions4;
|
|
387
389
|
var iframeRendering = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
388
390
|
var allowMultipleRenderers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
389
391
|
(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, FronteggApp);
|
|
@@ -842,9 +844,10 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
842
844
|
var contextHolder = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](appName);
|
|
843
845
|
contextHolder.setAppName(appName);
|
|
844
846
|
this.setEntitlementsOptions(_options.entitlementsOptions);
|
|
847
|
+
// Tenant selection needs the user and tenants loaded, so it takes precedence over skipUserLoading
|
|
845
848
|
this.setSessionContext({
|
|
846
849
|
enableSessionPerTenant: (_options$authOptions = _options.authOptions) == null ? void 0 : _options$authOptions.enableSessionPerTenant,
|
|
847
|
-
skipUserLoading: (_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading
|
|
850
|
+
skipUserLoading: ((_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading) && ((_options$authOptions3 = _options.authOptions) == null ? void 0 : (_options$authOptions4 = _options$authOptions3.tenantSelection) == null ? void 0 : _options$authOptions4.enabled) !== true
|
|
848
851
|
});
|
|
849
852
|
|
|
850
853
|
// pay attention: basename is used from the router base name, then if it's empty it will be the frontegg options basename
|
|
@@ -1924,7 +1927,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1924
1927
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1925
1928
|
/* harmony export */ });
|
|
1926
1929
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1927
|
-
cdnVersion: '7.
|
|
1930
|
+
cdnVersion: '7.125.0-alpha.0'
|
|
1928
1931
|
});
|
|
1929
1932
|
|
|
1930
1933
|
/***/ }),
|
|
@@ -14347,6 +14350,7 @@ const _excluded = ["callback"],
|
|
|
14347
14350
|
|
|
14348
14351
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
|
|
14349
14352
|
const actions = sharedActions;
|
|
14353
|
+
let pendingRoleAssignmentPolicyRequest = null;
|
|
14350
14354
|
|
|
14351
14355
|
/**
|
|
14352
14356
|
* @protected
|
|
@@ -14440,6 +14444,9 @@ const _excluded = ["callback"],
|
|
|
14440
14444
|
const setSecurityPolicyAuthStrategyPublicState = state => {
|
|
14441
14445
|
Object.assign(store.auth.securityPolicyState.publicAuthStrategyPolicy, state);
|
|
14442
14446
|
};
|
|
14447
|
+
const setRoleAssignmentPolicyState = state => {
|
|
14448
|
+
Object.assign(store.auth.securityPolicyState.roleAssignmentPolicy, state);
|
|
14449
|
+
};
|
|
14443
14450
|
const resetSecurityPolicyState = () => {
|
|
14444
14451
|
(0,_helpers__WEBPACK_IMPORTED_MODULE_2__.deepResetState)(store, ['auth', 'securityPolicyState'], _state__WEBPACK_IMPORTED_MODULE_3__.initialState);
|
|
14445
14452
|
};
|
|
@@ -14492,6 +14499,34 @@ const _excluded = ["callback"],
|
|
|
14492
14499
|
});
|
|
14493
14500
|
}
|
|
14494
14501
|
};
|
|
14502
|
+
const loadRoleAssignmentPolicy = async payload => {
|
|
14503
|
+
// Several role pickers can mount at once, all before the first response lands.
|
|
14504
|
+
// Share the in-flight request so they do not each trigger their own call.
|
|
14505
|
+
if (pendingRoleAssignmentPolicyRequest) {
|
|
14506
|
+
return pendingRoleAssignmentPolicyRequest;
|
|
14507
|
+
}
|
|
14508
|
+
setRoleAssignmentPolicyState({
|
|
14509
|
+
loading: true,
|
|
14510
|
+
error: null
|
|
14511
|
+
});
|
|
14512
|
+
pendingRoleAssignmentPolicyRequest = (async () => {
|
|
14513
|
+
try {
|
|
14514
|
+
const policy = await (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.retryIfNeeded)(() => api.auth.getRoleAssignmentPolicy(), payload == null ? void 0 : payload.retryConfig);
|
|
14515
|
+
setRoleAssignmentPolicyState({
|
|
14516
|
+
policy,
|
|
14517
|
+
loading: false
|
|
14518
|
+
});
|
|
14519
|
+
} catch (e) {
|
|
14520
|
+
setRoleAssignmentPolicyState({
|
|
14521
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e),
|
|
14522
|
+
loading: false
|
|
14523
|
+
});
|
|
14524
|
+
} finally {
|
|
14525
|
+
pendingRoleAssignmentPolicyRequest = null;
|
|
14526
|
+
}
|
|
14527
|
+
})();
|
|
14528
|
+
return pendingRoleAssignmentPolicyRequest;
|
|
14529
|
+
};
|
|
14495
14530
|
const loadVendorPasswordConfig = async payload => {
|
|
14496
14531
|
setSecurityPolicyPasswordState({
|
|
14497
14532
|
loading: true,
|
|
@@ -14806,10 +14841,12 @@ const _excluded = ["callback"],
|
|
|
14806
14841
|
resetSecurityPolicyState,
|
|
14807
14842
|
setSecurityPolicyPasswordState,
|
|
14808
14843
|
setSecurityPolicyAuthStrategyPublicState,
|
|
14844
|
+
setRoleAssignmentPolicyState,
|
|
14809
14845
|
// actions
|
|
14810
14846
|
loadSecurityPolicy,
|
|
14811
14847
|
loadGlobalSecurityPolicy,
|
|
14812
14848
|
loadPublicSecurityPolicy,
|
|
14849
|
+
loadRoleAssignmentPolicy,
|
|
14813
14850
|
loadVendorPasswordConfig,
|
|
14814
14851
|
loadSecurityPolicyMfa,
|
|
14815
14852
|
loadSecurityPolicyVendorMfa,
|
|
@@ -14891,6 +14928,9 @@ const initialState = {
|
|
|
14891
14928
|
publicPolicy: {
|
|
14892
14929
|
loading: false
|
|
14893
14930
|
},
|
|
14931
|
+
roleAssignmentPolicy: {
|
|
14932
|
+
loading: false
|
|
14933
|
+
},
|
|
14894
14934
|
vendorMfaPolicy: {
|
|
14895
14935
|
loading: true
|
|
14896
14936
|
},
|
|
@@ -21089,7 +21129,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21089
21129
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
21090
21130
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
21091
21131
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
21092
|
-
/** @license Frontegg v7.
|
|
21132
|
+
/** @license Frontegg v7.125.0-alpha.0
|
|
21093
21133
|
*
|
|
21094
21134
|
* This source code is licensed under the MIT license found in the
|
|
21095
21135
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -23511,7 +23551,7 @@ const _excluded = ["callback"],
|
|
|
23511
23551
|
|
|
23512
23552
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, actions) => {
|
|
23513
23553
|
const originalActions = (0,_auth_Security_SecurityPolicyState__WEBPACK_IMPORTED_MODULE_2__["default"])(store, api, actions);
|
|
23514
|
-
const mockedActions = (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.mockActionsExpect)(originalActions, ['setSecurityPolicyState', 'setSecurityPolicyGlobalState', 'setSecurityPolicyPublicState', 'setSecurityPolicyMfaState', 'setSecurityPolicyVendorMfaState', 'setSecurityPolicyLockoutState', 'setSecurityPolicyVendorLockoutState', 'setSecurityPolicyCaptchaState', 'setSecurityPolicyPasswordHistoryState', 'setSecurityPolicyVendorPasswordHistoryState', 'resetSecurityPolicyState', 'setSecurityPolicyPasswordState', 'setSecurityPolicyAuthStrategyPublicState']);
|
|
23554
|
+
const mockedActions = (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.mockActionsExpect)(originalActions, ['setSecurityPolicyState', 'setSecurityPolicyGlobalState', 'setSecurityPolicyPublicState', 'setSecurityPolicyMfaState', 'setSecurityPolicyVendorMfaState', 'setSecurityPolicyLockoutState', 'setSecurityPolicyVendorLockoutState', 'setSecurityPolicyCaptchaState', 'setSecurityPolicyPasswordHistoryState', 'setSecurityPolicyVendorPasswordHistoryState', 'resetSecurityPolicyState', 'setSecurityPolicyPasswordState', 'setSecurityPolicyAuthStrategyPublicState', 'setRoleAssignmentPolicyState']);
|
|
23515
23555
|
mockedActions.loadSecurityPolicy = async () => {
|
|
23516
23556
|
mockedActions.setSecurityPolicyGlobalState({
|
|
23517
23557
|
loading: true,
|
|
@@ -23541,6 +23581,25 @@ const _excluded = ["callback"],
|
|
|
23541
23581
|
});
|
|
23542
23582
|
}
|
|
23543
23583
|
};
|
|
23584
|
+
mockedActions.loadRoleAssignmentPolicy = async () => {
|
|
23585
|
+
mockedActions.setRoleAssignmentPolicyState({
|
|
23586
|
+
loading: true,
|
|
23587
|
+
error: null
|
|
23588
|
+
});
|
|
23589
|
+
try {
|
|
23590
|
+
mockedActions.setRoleAssignmentPolicyState({
|
|
23591
|
+
policy: {
|
|
23592
|
+
restrictEqualLevelRoleAssignment: false
|
|
23593
|
+
},
|
|
23594
|
+
loading: false
|
|
23595
|
+
});
|
|
23596
|
+
} catch (e) {
|
|
23597
|
+
mockedActions.setRoleAssignmentPolicyState({
|
|
23598
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.errorHandler)(e),
|
|
23599
|
+
loading: false
|
|
23600
|
+
});
|
|
23601
|
+
}
|
|
23602
|
+
};
|
|
23544
23603
|
mockedActions.saveSecurityPolicyMfa = async payload => {
|
|
23545
23604
|
var _newSecurityPolicy$id;
|
|
23546
23605
|
const {
|
|
@@ -24717,6 +24776,7 @@ const publicSecurityPolicy = {
|
|
|
24717
24776
|
allowNotVerifiedUsersLogin: false,
|
|
24718
24777
|
apiTokensEnabled: true,
|
|
24719
24778
|
forcePermissions: false,
|
|
24779
|
+
restrictEqualLevelRoleAssignment: false,
|
|
24720
24780
|
authStrategy: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_1__.AuthStrategyEnum.EmailAndPassword,
|
|
24721
24781
|
machineToMachineAuthStrategy: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_1__.MachineToMachineAuthStrategy.ClientCredentials
|
|
24722
24782
|
};
|
|
@@ -29036,11 +29096,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29036
29096
|
/* harmony export */ });
|
|
29037
29097
|
/* 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");
|
|
29038
29098
|
/* harmony import */ var _ContextHolder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContextHolder */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
|
|
29039
|
-
/* harmony import */ var
|
|
29040
|
-
/* harmony import */ var
|
|
29041
|
-
/* harmony import */ var
|
|
29042
|
-
/* harmony import */ var _jwt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jwt */ "../../dist/@frontegg/rest-api/jwt.js");
|
|
29043
|
-
|
|
29099
|
+
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./error */ "../../dist/@frontegg/rest-api/error.js");
|
|
29100
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
29101
|
+
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/rest-api/interfaces.js");
|
|
29044
29102
|
|
|
29045
29103
|
|
|
29046
29104
|
|
|
@@ -29113,20 +29171,6 @@ class FetchClient {
|
|
|
29113
29171
|
}
|
|
29114
29172
|
return output;
|
|
29115
29173
|
};
|
|
29116
|
-
this.getApplicationId = (context, accessToken) => {
|
|
29117
|
-
if (context.appId) {
|
|
29118
|
-
return context.appId;
|
|
29119
|
-
}
|
|
29120
|
-
if (!accessToken) {
|
|
29121
|
-
return undefined;
|
|
29122
|
-
}
|
|
29123
|
-
try {
|
|
29124
|
-
const decodedContent = (0,_jwt__WEBPACK_IMPORTED_MODULE_2__.jwtDecode)(accessToken);
|
|
29125
|
-
return (decodedContent == null ? void 0 : decodedContent.applicationId) || undefined;
|
|
29126
|
-
} catch {
|
|
29127
|
-
return undefined;
|
|
29128
|
-
}
|
|
29129
|
-
};
|
|
29130
29174
|
this.buildRequestHeaders = async contentType => {
|
|
29131
29175
|
var _context$tokenResolve;
|
|
29132
29176
|
const fronteggContext = this.getFronteggContext();
|
|
@@ -29135,21 +29179,17 @@ class FetchClient {
|
|
|
29135
29179
|
const authToken = await ((_context$tokenResolve = context == null ? void 0 : context.tokenResolver) != null ? _context$tokenResolve : fronteggContext.getAccessToken)();
|
|
29136
29180
|
const requestSource = fronteggContext.getRequestSource();
|
|
29137
29181
|
const scopedTenant = FetchClient.getScopedTenant();
|
|
29138
|
-
const applicationId = this.getApplicationId(context, authToken);
|
|
29139
29182
|
if (contentType) {
|
|
29140
|
-
headers[
|
|
29183
|
+
headers[_interfaces__WEBPACK_IMPORTED_MODULE_2__.fronteggHeaders.contentType] = contentType;
|
|
29141
29184
|
}
|
|
29142
29185
|
if (requestSource) {
|
|
29143
|
-
headers[
|
|
29186
|
+
headers[_interfaces__WEBPACK_IMPORTED_MODULE_2__.fronteggHeaders.source] = requestSource;
|
|
29144
29187
|
}
|
|
29145
29188
|
if (authToken) {
|
|
29146
29189
|
headers.Authorization = `Bearer ${authToken}`;
|
|
29147
29190
|
}
|
|
29148
|
-
if (applicationId) {
|
|
29149
|
-
headers[_interfaces__WEBPACK_IMPORTED_MODULE_3__.fronteggHeaders.applicationId] = applicationId;
|
|
29150
|
-
}
|
|
29151
29191
|
if (scopedTenant) {
|
|
29152
|
-
headers[
|
|
29192
|
+
headers[_interfaces__WEBPACK_IMPORTED_MODULE_2__.fronteggHeaders.scopedTenant] = scopedTenant;
|
|
29153
29193
|
}
|
|
29154
29194
|
for (const additionalHeader of await this.getAdditionalHeaders(context)) {
|
|
29155
29195
|
headers[`${additionalHeader.key}`] = `${additionalHeader.value}`;
|
|
@@ -29158,7 +29198,7 @@ class FetchClient {
|
|
|
29158
29198
|
};
|
|
29159
29199
|
this.getResponseTraceId = response => {
|
|
29160
29200
|
var _response$headers, _response$headers$get;
|
|
29161
|
-
return response == null ? void 0 : (_response$headers = response.headers) == null ? void 0 : (_response$headers$get = _response$headers.get) == null ? void 0 : _response$headers$get.call(_response$headers,
|
|
29201
|
+
return response == null ? void 0 : (_response$headers = response.headers) == null ? void 0 : (_response$headers$get = _response$headers.get) == null ? void 0 : _response$headers$get.call(_response$headers, _constants__WEBPACK_IMPORTED_MODULE_3__.FRONTEGG_TRACE_ID);
|
|
29162
29202
|
};
|
|
29163
29203
|
this.sendRequest = async opts => {
|
|
29164
29204
|
var _opts$method, _ref, _opts$credentials;
|
|
@@ -29181,7 +29221,7 @@ class FetchClient {
|
|
|
29181
29221
|
if (!response.ok) {
|
|
29182
29222
|
var _errorMessage, _errorMessage2, _errorMessage3, _errorMessage4, _context$logLevel, _context$logLevel2, _errorCode;
|
|
29183
29223
|
if (response.status === 413) {
|
|
29184
|
-
throw new
|
|
29224
|
+
throw new _error__WEBPACK_IMPORTED_MODULE_4__.FronteggApiError('Error request is too large', response.status, this.getResponseTraceId(response), undefined);
|
|
29185
29225
|
}
|
|
29186
29226
|
let errorMessage;
|
|
29187
29227
|
let errorCode;
|
|
@@ -29213,7 +29253,7 @@ class FetchClient {
|
|
|
29213
29253
|
errorMessage = `Error ${response.status} - ${response.statusText}`;
|
|
29214
29254
|
}
|
|
29215
29255
|
if (response.status >= 400 && response.status < 500 && ['warn'].includes((_context$logLevel = context.logLevel) != null ? _context$logLevel : '')) console.warn(errorMessage);else if (response.status === 500 && ['warn', 'error'].includes((_context$logLevel2 = context.logLevel) != null ? _context$logLevel2 : '')) console.error(errorMessage);
|
|
29216
|
-
throw new
|
|
29256
|
+
throw new _error__WEBPACK_IMPORTED_MODULE_4__.FronteggApiError(isJsonResponse ? errorMessage : _constants__WEBPACK_IMPORTED_MODULE_3__.GENERIC_ERROR_MESSAGE, response.status, this.getResponseTraceId(response), (_errorCode = errorCode) != null ? _errorCode : _constants__WEBPACK_IMPORTED_MODULE_3__.GENERIC_ERROR_CODE, errorContext, errors, errorCodes);
|
|
29217
29257
|
}
|
|
29218
29258
|
if (opts.responseType === 'stream') {
|
|
29219
29259
|
return response.body;
|
|
@@ -29323,10 +29363,10 @@ FetchClient.getMetadataHeaders = context => {
|
|
|
29323
29363
|
var _context$metadataHead, _context$metadataHead2;
|
|
29324
29364
|
const headers = {};
|
|
29325
29365
|
if (context != null && (_context$metadataHead = context.metadataHeaders) != null && _context$metadataHead.fronteggSdkVersion) {
|
|
29326
|
-
headers[
|
|
29366
|
+
headers[_interfaces__WEBPACK_IMPORTED_MODULE_2__.fronteggHeaders.fronteggSdkVersion] = context.metadataHeaders.fronteggSdkVersion;
|
|
29327
29367
|
}
|
|
29328
29368
|
if (context != null && (_context$metadataHead2 = context.metadataHeaders) != null && _context$metadataHead2.framework) {
|
|
29329
|
-
headers[
|
|
29369
|
+
headers[_interfaces__WEBPACK_IMPORTED_MODULE_2__.fronteggHeaders.frameWork] = context.metadataHeaders.framework;
|
|
29330
29370
|
}
|
|
29331
29371
|
return headers;
|
|
29332
29372
|
};
|
|
@@ -30100,6 +30140,9 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
|
|
|
30100
30140
|
this.getVendorConfig = async () => {
|
|
30101
30141
|
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.configurations.v1}/public`);
|
|
30102
30142
|
};
|
|
30143
|
+
this.getRoleAssignmentPolicy = async () => {
|
|
30144
|
+
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.configurations.v1}/role-assignment-policy`);
|
|
30145
|
+
};
|
|
30103
30146
|
this.signUp = async (signUpUrl, body) => {
|
|
30104
30147
|
const {
|
|
30105
30148
|
shouldActivate,
|
|
@@ -30956,8 +30999,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30956
30999
|
/* harmony export */ FRONTEGG_TRACE_ID: () => (/* binding */ FRONTEGG_TRACE_ID),
|
|
30957
31000
|
/* harmony export */ GENERIC_ERROR_CODE: () => (/* binding */ GENERIC_ERROR_CODE),
|
|
30958
31001
|
/* harmony export */ GENERIC_ERROR_MESSAGE: () => (/* binding */ GENERIC_ERROR_MESSAGE),
|
|
31002
|
+
/* harmony export */ INVALID_SSO_EMAIL_DOMAIN_ERROR_CODE: () => (/* binding */ INVALID_SSO_EMAIL_DOMAIN_ERROR_CODE),
|
|
30959
31003
|
/* harmony export */ INVITATION_LINK_CREATION_TENANT_LOCKED_ERROR_CODE: () => (/* binding */ INVITATION_LINK_CREATION_TENANT_LOCKED_ERROR_CODE),
|
|
30960
31004
|
/* harmony export */ INVITATION_TENANT_LOCKED_ERROR_CODE: () => (/* binding */ INVITATION_TENANT_LOCKED_ERROR_CODE),
|
|
31005
|
+
/* harmony export */ SSO_EMAIL_MISMATCH_ERROR_CODE: () => (/* binding */ SSO_EMAIL_MISMATCH_ERROR_CODE),
|
|
30961
31006
|
/* harmony export */ urls: () => (/* binding */ urls)
|
|
30962
31007
|
/* harmony export */ });
|
|
30963
31008
|
const urls = {
|
|
@@ -31283,6 +31328,12 @@ const INVITATION_TENANT_LOCKED_ERROR_CODE = 'ER-01239';
|
|
|
31283
31328
|
// locked tenant (HTTP 400 Bad Request, IdentityErrorCodes.InvitationLinkCreationTenantLockedException).
|
|
31284
31329
|
const INVITATION_LINK_CREATION_TENANT_LOCKED_ERROR_CODE = 'ER-01240';
|
|
31285
31330
|
|
|
31331
|
+
// Returned on the SAML callback when the email domain returned by the IdP is not configured for SSO.
|
|
31332
|
+
const INVALID_SSO_EMAIL_DOMAIN_ERROR_CODE = 'ER-01248';
|
|
31333
|
+
|
|
31334
|
+
// Returned on the SAML callback when the email returned by the IdP differs from the one that started the login.
|
|
31335
|
+
const SSO_EMAIL_MISMATCH_ERROR_CODE = 'ER-01249';
|
|
31336
|
+
|
|
31286
31337
|
/***/ }),
|
|
31287
31338
|
|
|
31288
31339
|
/***/ "../../dist/@frontegg/rest-api/directory/index.js":
|
|
@@ -31697,6 +31748,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31697
31748
|
/* harmony export */ GetUsersFilterPreset: () => (/* reexport safe */ _users_interfaces__WEBPACK_IMPORTED_MODULE_14__.GetUsersFilterPreset),
|
|
31698
31749
|
/* harmony export */ GroupManagedByEnum: () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_13__.GroupManagedByEnum),
|
|
31699
31750
|
/* harmony export */ GroupRelations: () => (/* reexport safe */ _groups_enums__WEBPACK_IMPORTED_MODULE_13__.GroupRelations),
|
|
31751
|
+
/* harmony export */ INVALID_SSO_EMAIL_DOMAIN_ERROR_CODE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.INVALID_SSO_EMAIL_DOMAIN_ERROR_CODE),
|
|
31700
31752
|
/* harmony export */ INVITATION_LINK_CREATION_TENANT_LOCKED_ERROR_CODE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.INVITATION_LINK_CREATION_TENANT_LOCKED_ERROR_CODE),
|
|
31701
31753
|
/* harmony export */ INVITATION_TENANT_LOCKED_ERROR_CODE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.INVITATION_TENANT_LOCKED_ERROR_CODE),
|
|
31702
31754
|
/* harmony export */ ISubscriptionCancellationPolicy: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_48__.ISubscriptionCancellationPolicy),
|
|
@@ -31717,6 +31769,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31717
31769
|
/* harmony export */ RecommendationSeverity: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.RecommendationSeverity),
|
|
31718
31770
|
/* harmony export */ RequestSource: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.RequestSource),
|
|
31719
31771
|
/* harmony export */ RestrictionType: () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.RestrictionType),
|
|
31772
|
+
/* harmony export */ SSO_EMAIL_MISMATCH_ERROR_CODE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_18__.SSO_EMAIL_MISMATCH_ERROR_CODE),
|
|
31720
31773
|
/* harmony export */ ScimConnectionSource: () => (/* reexport safe */ _directory_interfaces__WEBPACK_IMPORTED_MODULE_12__.ScimConnectionSource),
|
|
31721
31774
|
/* harmony export */ SecondaryAuthStrategy: () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.SecondaryAuthStrategy),
|
|
31722
31775
|
/* harmony export */ SecurityCategory: () => (/* reexport safe */ _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__.SecurityCategory),
|
|
@@ -31795,7 +31848,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31795
31848
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
31796
31849
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
31797
31850
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
31798
|
-
/** @license Frontegg v7.
|
|
31851
|
+
/** @license Frontegg v7.125.0-alpha.0
|
|
31799
31852
|
*
|
|
31800
31853
|
* This source code is licensed under the MIT license found in the
|
|
31801
31854
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -31971,8 +32024,7 @@ const fronteggHeaders = {
|
|
|
31971
32024
|
fronteggSdkVersion: 'x-frontegg-sdk',
|
|
31972
32025
|
contentType: 'Content-Type',
|
|
31973
32026
|
source: 'frontegg-source',
|
|
31974
|
-
scopedTenant: 'frontegg-scoped-tenant'
|
|
31975
|
-
applicationId: 'frontegg-application-id'
|
|
32027
|
+
scopedTenant: 'frontegg-scoped-tenant'
|
|
31976
32028
|
};
|
|
31977
32029
|
let RequestSource;
|
|
31978
32030
|
(function (RequestSource) {
|
|
@@ -34638,7 +34690,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34638
34690
|
/* harmony export */ });
|
|
34639
34691
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
34640
34692
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
34641
|
-
/** @license Frontegg v7.
|
|
34693
|
+
/** @license Frontegg v7.125.0-alpha.0
|
|
34642
34694
|
*
|
|
34643
34695
|
* This source code is licensed under the MIT license found in the
|
|
34644
34696
|
* LICENSE file in the root directory of this source tree.
|