@frontegg/redux-store 7.118.0 → 7.119.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/auth/LoginState/actions/index.js +14 -2
- package/index.js +1 -1
- package/node/auth/LoginState/actions/index.js +13 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@ import { LoginFlow, LoginStep } from '../interfaces';
|
|
|
26
26
|
import { base64urlDecode, deepResetState, delay, errorHandler, errorTraceId, GTMEventAction, publicKeyCredentialToJSON, refreshTokenWithRetry, reportGTMEvent, retryIfNeeded, withRetryConfig } from '../../../helpers';
|
|
27
27
|
import { initialState } from '../state';
|
|
28
28
|
import { getSearchParam, isEmailPayload, isUsernamePayload, shouldShowPasswordRotationPromptFunc, TENANT_ID_PARAM_KEY } from '../helpers';
|
|
29
|
-
import { AuthStrategyEnum, ContextHolder, FeatureFlags, getTabTenantFromSessionStorage, removeTabTenantFromSessionStorage, WebAuthnDeviceType } from '@frontegg/rest-api';
|
|
29
|
+
import { AuthStrategyEnum, ContextHolder, FeatureFlags, getTabTenantFromSessionStorage, removeTabTenantFromSessionStorage, WebAuthnDeviceType, PreLoginAddressType } from '@frontegg/rest-api';
|
|
30
30
|
import hostedLoginAuthorizeActions from './hostedLoginAuthorize.actions';
|
|
31
31
|
import { clearHostedOAuthState } from '../oauthStorage';
|
|
32
32
|
import { SHOULD_STEP_UP_KEY } from '../../StepUpState/consts';
|
|
@@ -410,9 +410,21 @@ export default ((store, api, sharedActions) => {
|
|
|
410
410
|
}));
|
|
411
411
|
const {
|
|
412
412
|
address,
|
|
413
|
-
idpType
|
|
413
|
+
idpType,
|
|
414
|
+
addressType
|
|
414
415
|
} = preLoginResult != null ? preLoginResult : {};
|
|
415
416
|
if (address) {
|
|
417
|
+
if (addressType === PreLoginAddressType.External) {
|
|
418
|
+
// Domain-based routing: navigate to the vendor legacy login URL immediately,
|
|
419
|
+
// skipping the SSO interstitial and the SSO/OIDC-specific handling.
|
|
420
|
+
setLoginState({
|
|
421
|
+
loading: false
|
|
422
|
+
});
|
|
423
|
+
onRedirectTo(address, {
|
|
424
|
+
refresh: true
|
|
425
|
+
});
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
416
428
|
let ssoRedirectUrl = address;
|
|
417
429
|
if (idpType === SamlVendors.Oidc && !ssoRedirectUrl.includes('redirect_uri')) {
|
|
418
430
|
const {
|
package/index.js
CHANGED
|
@@ -417,9 +417,21 @@ var _default = (store, api, sharedActions) => {
|
|
|
417
417
|
}));
|
|
418
418
|
const {
|
|
419
419
|
address,
|
|
420
|
-
idpType
|
|
420
|
+
idpType,
|
|
421
|
+
addressType
|
|
421
422
|
} = preLoginResult != null ? preLoginResult : {};
|
|
422
423
|
if (address) {
|
|
424
|
+
if (addressType === _restApi.PreLoginAddressType.External) {
|
|
425
|
+
// Domain-based routing: navigate to the vendor legacy login URL immediately,
|
|
426
|
+
// skipping the SSO interstitial and the SSO/OIDC-specific handling.
|
|
427
|
+
setLoginState({
|
|
428
|
+
loading: false
|
|
429
|
+
});
|
|
430
|
+
onRedirectTo(address, {
|
|
431
|
+
refresh: true
|
|
432
|
+
});
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
423
435
|
let ssoRedirectUrl = address;
|
|
424
436
|
if (idpType === _interfaces4.SamlVendors.Oidc && !ssoRedirectUrl.includes('redirect_uri')) {
|
|
425
437
|
const {
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.119.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
9
|
"@frontegg/entitlements-javascript-commons": "1.1.2",
|
|
10
|
-
"@frontegg/rest-api": "7.
|
|
10
|
+
"@frontegg/rest-api": "7.119.0",
|
|
11
11
|
"fast-deep-equal": "3.1.3",
|
|
12
12
|
"get-value": "^3.0.1",
|
|
13
13
|
"proxy-compare": "^3.0.0",
|