@frontegg/redux-store 5.14.1 → 5.15.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/index.js +2 -1
- package/node/auth/index.js +2 -1
- package/package.json +1 -1
package/auth/index.js
CHANGED
|
@@ -498,6 +498,7 @@ const initialState = Object.assign({ routes: {
|
|
|
498
498
|
socialLoginCallbackUrl: '/account/social/success',
|
|
499
499
|
signUpUrl: '/account/sign-up',
|
|
500
500
|
oidcRedirectUrl: '/account/oidc/callback',
|
|
501
|
+
samlCallbackUrl: '/account/saml/callback',
|
|
501
502
|
magicLinkCallbackUrl: '/account/login/magic-link',
|
|
502
503
|
hostedLoginRedirectUrl: '/oauth/callback'
|
|
503
504
|
}, onRedirectTo: () => { } }, reinitializeState);
|
|
@@ -915,7 +916,7 @@ function* refreshToken() {
|
|
|
915
916
|
else {
|
|
916
917
|
yield put(actions.setTenantsState({ tenants, loading: false }));
|
|
917
918
|
yield put(actions.setState({ user, isAuthenticated: true }));
|
|
918
|
-
if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl].some(url => url && window.location.pathname.endsWith(url)) ||
|
|
919
|
+
if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl].some(url => url && window.location.pathname.endsWith(url)) ||
|
|
919
920
|
(window.location.pathname.endsWith(routes.activateUrl) && user.verified)) {
|
|
920
921
|
if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
|
|
921
922
|
onRedirectTo(routes.signUpSuccessUrl, { refresh: routes.signUpSuccessUrl.startsWith('http') });
|
package/node/auth/index.js
CHANGED
|
@@ -500,6 +500,7 @@ const initialState = Object.assign({ routes: {
|
|
|
500
500
|
socialLoginCallbackUrl: '/account/social/success',
|
|
501
501
|
signUpUrl: '/account/sign-up',
|
|
502
502
|
oidcRedirectUrl: '/account/oidc/callback',
|
|
503
|
+
samlCallbackUrl: '/account/saml/callback',
|
|
503
504
|
magicLinkCallbackUrl: '/account/login/magic-link',
|
|
504
505
|
hostedLoginRedirectUrl: '/oauth/callback'
|
|
505
506
|
}, onRedirectTo: () => { } }, reinitializeState);
|
|
@@ -917,7 +918,7 @@ function* refreshToken() {
|
|
|
917
918
|
else {
|
|
918
919
|
yield effects.put(actions.setTenantsState({ tenants, loading: false }));
|
|
919
920
|
yield effects.put(actions.setState({ user, isAuthenticated: true }));
|
|
920
|
-
if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl].some(url => url && window.location.pathname.endsWith(url)) ||
|
|
921
|
+
if ([routes.loginUrl, routes.socialLoginCallbackUrl, routes.signUpUrl, routes.oidcRedirectUrl, routes.samlCallbackUrl].some(url => url && window.location.pathname.endsWith(url)) ||
|
|
921
922
|
(window.location.pathname.endsWith(routes.activateUrl) && user.verified)) {
|
|
922
923
|
if (loginState.isNewUser && routes.signUpSuccessUrl && routes.socialLoginCallbackUrl === window.location.pathname) {
|
|
923
924
|
onRedirectTo(routes.signUpSuccessUrl, { refresh: routes.signUpSuccessUrl.startsWith('http') });
|