@frontegg/redux-store 6.129.0-alpha.1 → 6.129.0-alpha.3
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/ActivateState/index.d.ts +12 -0
- package/auth/ApiTokensState/index.d.ts +8 -0
- package/auth/LoginState/saga.js +1 -1
- package/auth/SSOState/saga.v2.js +4 -9
- package/auth/Security/RestrictionsState/index.d.ts +214 -0
- package/auth/{RestrictionsState → Security/RestrictionsState}/index.js +2 -2
- package/auth/{RestrictionsState → Security/RestrictionsState}/interfaces.d.ts +1 -1
- package/auth/{RestrictionsState → Security/RestrictionsState}/saga.js +5 -5
- package/auth/Security/SecurityCenterState/index.d.ts +141 -0
- package/auth/{SecurityCenterState → Security/SecurityCenterState}/index.js +2 -2
- package/auth/{SecurityCenterState → Security/SecurityCenterState}/interfaces.d.ts +1 -1
- package/auth/{SecurityCenterState → Security/SecurityCenterState}/saga.js +4 -4
- package/auth/Security/SecurityPolicyState/index.d.ts +802 -0
- package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/index.js +2 -2
- package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/interfaces.d.ts +1 -1
- package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/saga.d.ts +9 -9
- package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/saga.js +5 -5
- package/auth/Security/SessionsPolicyState/index.d.ts +120 -0
- package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/index.js +2 -2
- package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/saga.js +2 -2
- package/auth/SignUp/saga.js +1 -1
- package/auth/index.d.ts +17 -17
- package/auth/index.js +9 -9
- package/auth/initialState.js +4 -4
- package/auth/interfaces.d.ts +4 -4
- package/auth/reducer.d.ts +3 -3
- package/auth/reducer.js +4 -4
- package/auth/saga.js +4 -4
- package/index.js +1 -1
- package/node/auth/LoginState/saga.js +1 -1
- package/node/auth/SSOState/saga.v2.js +3 -8
- package/node/auth/{RestrictionsState → Security/RestrictionsState}/index.js +2 -2
- package/node/auth/{RestrictionsState → Security/RestrictionsState}/saga.js +5 -5
- package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/index.js +2 -2
- package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/saga.js +4 -4
- package/node/auth/{SecurityPolicyState → Security/SecurityPolicyState}/index.js +2 -2
- package/node/auth/{SecurityPolicyState → Security/SecurityPolicyState}/saga.js +5 -5
- package/node/auth/{SessionsPolicyState → Security/SessionsPolicyState}/index.js +2 -2
- package/node/auth/{SessionsPolicyState → Security/SessionsPolicyState}/saga.js +2 -2
- package/node/auth/SignUp/saga.js +1 -1
- package/node/auth/index.js +9 -9
- package/node/auth/initialState.js +4 -4
- package/node/auth/reducer.js +4 -4
- package/node/auth/saga.js +4 -4
- package/node/index.js +1 -1
- package/package.json +2 -2
- package/auth/RestrictionsState/index.d.ts +0 -226
- package/auth/SecurityCenterState/index.d.ts +0 -141
- package/auth/SecurityPolicyState/index.d.ts +0 -802
- package/auth/SessionsPolicyState/index.d.ts +0 -120
- /package/auth/{RestrictionsState → Security/RestrictionsState}/interfaces.js +0 -0
- /package/auth/{RestrictionsState → Security/RestrictionsState}/saga.d.ts +0 -0
- /package/auth/{SecurityCenterState → Security/SecurityCenterState}/interfaces.js +0 -0
- /package/auth/{SecurityCenterState → Security/SecurityCenterState}/saga.d.ts +0 -0
- /package/auth/{SecurityCenterState → Security/SecurityCenterState}/types.d.ts +0 -0
- /package/auth/{SecurityCenterState → Security/SecurityCenterState}/types.js +0 -0
- /package/auth/{SecurityPolicyState → Security/SecurityPolicyState}/interfaces.js +0 -0
- /package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/interfaces.d.ts +0 -0
- /package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/interfaces.js +0 -0
- /package/auth/{SessionsPolicyState → Security/SessionsPolicyState}/saga.d.ts +0 -0
- /package/node/auth/{RestrictionsState → Security/RestrictionsState}/interfaces.js +0 -0
- /package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/interfaces.js +0 -0
- /package/node/auth/{SecurityCenterState → Security/SecurityCenterState}/types.js +0 -0
- /package/node/auth/{SecurityPolicyState → Security/SecurityPolicyState}/interfaces.js +0 -0
- /package/node/auth/{SessionsPolicyState → Security/SessionsPolicyState}/interfaces.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { resetStateByKey, typeReducerForKey, typeReducerNestedKey } from '
|
|
3
|
-
import { authStoreName } from '
|
|
2
|
+
import { resetStateByKey, typeReducerForKey, typeReducerNestedKey } from '../../utils';
|
|
3
|
+
import { authStoreName } from '../../../constants';
|
|
4
4
|
const securityPolicyState = {
|
|
5
5
|
globalPolicy: {
|
|
6
6
|
loading: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WithCallback, WithStatus } from '
|
|
1
|
+
import { WithCallback, WithStatus } from '../../../interfaces';
|
|
2
2
|
import { ISaveSecurityPolicyLockout, ISaveSecurityPolicyMfa, ISaveSecurityPolicyPasswordHistory, ISecurityPolicy, ISecurityPolicyCaptcha, ISecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyPasswordHistory, ISecurityPolicyPasswordConfig, IVendorConfig, IAuthStrategiesConfig } from '@frontegg/rest-api';
|
|
3
3
|
declare type PolicyState<T> = WithStatus & {
|
|
4
4
|
policy?: T;
|
|
@@ -4,35 +4,35 @@ export declare function getSecurityPolicyPublicStateWithCustomLogin(securityPoli
|
|
|
4
4
|
authStrategy: import("@frontegg/rest-api").AuthStrategyEnum;
|
|
5
5
|
} | undefined, (false & IAuthStrategiesConfig) | (true & IAuthStrategiesConfig)>;
|
|
6
6
|
export declare function setSecurityPolicyPublicStateForCustomLogin(authStrategy?: IVendorConfig['authStrategy']): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").PutEffect<{
|
|
7
|
-
payload: Partial<import("
|
|
7
|
+
payload: Partial<import("../../../interfaces").WithStatus & {
|
|
8
8
|
policy?: IVendorConfig | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
type: string;
|
|
11
|
-
}>, void, (false & Required<import("
|
|
11
|
+
}>, void, (false & Required<import("../../../interfaces").WithStatus & {
|
|
12
12
|
policy?: IVendorConfig | undefined;
|
|
13
|
-
}>) | (true & Required<import("
|
|
13
|
+
}>) | (true & Required<import("../../../interfaces").WithStatus & {
|
|
14
14
|
policy?: IVendorConfig | undefined;
|
|
15
15
|
}>)>;
|
|
16
16
|
export declare function loadPublicSecurityPolicy(): Generator<Generator<import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").CallEffect<IAuthStrategiesConfig>, IVendorConfig | {
|
|
17
17
|
authStrategy: import("@frontegg/rest-api").AuthStrategyEnum;
|
|
18
18
|
} | undefined, (false & IAuthStrategiesConfig) | (true & IAuthStrategiesConfig)> | import("redux-saga/effects").PutEffect<{
|
|
19
|
-
payload: Partial<import("
|
|
19
|
+
payload: Partial<import("../../../interfaces").WithStatus & {
|
|
20
20
|
policy?: IVendorConfig | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
type: string;
|
|
23
23
|
}> | import("redux-saga/effects").CallEffect<IVendorConfig>, void, IVendorConfig>;
|
|
24
24
|
export declare function getAuthStrategy(): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<IAuthStrategiesConfig>, IAuthStrategiesConfig, (false & IAuthStrategiesConfig) | (true & IAuthStrategiesConfig)>;
|
|
25
25
|
export declare function loadPublicAuthStrategiesPolicy(): Generator<import("redux-saga/effects").CallEffect<IAuthStrategiesConfig> | Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<boolean> | import("redux-saga/effects").PutEffect<{
|
|
26
|
-
payload: Partial<import("
|
|
26
|
+
payload: Partial<import("../../../interfaces").WithStatus & {
|
|
27
27
|
policy?: IVendorConfig | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
type: string;
|
|
30
|
-
}>, void, (false & Required<import("
|
|
30
|
+
}>, void, (false & Required<import("../../../interfaces").WithStatus & {
|
|
31
31
|
policy?: IVendorConfig | undefined;
|
|
32
|
-
}>) | (true & Required<import("
|
|
32
|
+
}>) | (true & Required<import("../../../interfaces").WithStatus & {
|
|
33
33
|
policy?: IVendorConfig | undefined;
|
|
34
34
|
}>)> | import("redux-saga/effects").PutEffect<{
|
|
35
|
-
payload: Partial<import("
|
|
35
|
+
payload: Partial<import("../../../interfaces").WithStatus & {
|
|
36
36
|
policy?: IAuthStrategiesConfig | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
type: string;
|
|
@@ -42,7 +42,7 @@ export declare function securityPolicySagas(): Generator<import("redux-saga/effe
|
|
|
42
42
|
* Preview Sagas
|
|
43
43
|
*********************************/
|
|
44
44
|
export declare function loadPublicSecurityPolicyMock(): Generator<import("redux-saga/effects").PutEffect<{
|
|
45
|
-
payload: Partial<import("
|
|
45
|
+
payload: Partial<import("../../../interfaces").WithStatus & {
|
|
46
46
|
policy?: IVendorConfig | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
type: string;
|
|
@@ -8,11 +8,11 @@ const _excluded = ["callback"],
|
|
|
8
8
|
_excluded6 = ["callback"];
|
|
9
9
|
import { call, put, select, takeEvery, takeLeading } from 'redux-saga/effects';
|
|
10
10
|
import { api } from '@frontegg/rest-api';
|
|
11
|
-
import { actions } from '
|
|
12
|
-
import { delay } from '
|
|
13
|
-
import { policyDemo, policyMfaDemo, policyLockoutDemo, policyPasswordHistoryDemo, publicSecurityPolicy } from '
|
|
14
|
-
import { errorHandler } from '
|
|
15
|
-
import { customLoginEnabled } from '
|
|
11
|
+
import { actions } from '../../reducer';
|
|
12
|
+
import { delay } from '../../utils';
|
|
13
|
+
import { policyDemo, policyMfaDemo, policyLockoutDemo, policyPasswordHistoryDemo, publicSecurityPolicy } from '../../dummy';
|
|
14
|
+
import { errorHandler } from '../../../utils';
|
|
15
|
+
import { customLoginEnabled } from '../../CustomLoginState/saga';
|
|
16
16
|
import { securityCenterSagaWrapper } from '../SecurityCenterState/saga';
|
|
17
17
|
function* loadSecurityPolicy() {
|
|
18
18
|
yield put(actions.setSecurityPolicyGlobalState({
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { SessionsPolicyState } from './interfaces';
|
|
2
|
+
import { WithCallback } from '../../../interfaces';
|
|
3
|
+
import { ISessionConfigurations } from '@frontegg/rest-api';
|
|
4
|
+
declare const sessionsPolicyState: SessionsPolicyState;
|
|
5
|
+
declare const reducers: {
|
|
6
|
+
setSessionsPolicyState: {
|
|
7
|
+
prepare: (payload: Partial<SessionsPolicyState>) => {
|
|
8
|
+
payload: Partial<SessionsPolicyState>;
|
|
9
|
+
};
|
|
10
|
+
reducer: (state: import("../..").AuthState, { payload }: {
|
|
11
|
+
payload: Partial<SessionsPolicyState>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => {
|
|
14
|
+
onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
|
|
15
|
+
error?: any;
|
|
16
|
+
isAuthenticated: boolean;
|
|
17
|
+
userIp?: string | undefined;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
keepSessionAlive?: boolean | undefined;
|
|
20
|
+
user?: import("../..").User | null | undefined;
|
|
21
|
+
isSSOAuth: boolean;
|
|
22
|
+
ssoACS?: string | undefined;
|
|
23
|
+
includeQueryParam?: boolean | undefined;
|
|
24
|
+
loginState: import("../..").LoginState;
|
|
25
|
+
activateState: import("../..").ActivateAccountState;
|
|
26
|
+
acceptInvitationState: import("../..").AcceptInvitationState;
|
|
27
|
+
forgotPasswordState: import("../..").ForgotPasswordState;
|
|
28
|
+
resetPhoneNumberState: import("../..").ResetPhoneNumberState;
|
|
29
|
+
ssoState: import("../..").SSOState;
|
|
30
|
+
profileState: import("../..").ProfileState;
|
|
31
|
+
mfaState: import("../..").MFAState;
|
|
32
|
+
teamState: import("../..").TeamState;
|
|
33
|
+
groupsState: import("../..").GroupsState;
|
|
34
|
+
groupsDialogsState: import("../..").GroupsDialogsState;
|
|
35
|
+
socialLoginState: import("../..").SocialLoginState;
|
|
36
|
+
signUpState: import("../..").SignUpState;
|
|
37
|
+
apiTokensState: import("../..").ApiTokensState;
|
|
38
|
+
securityPolicyState: import("../..").SecurityPolicyState;
|
|
39
|
+
restrictionsState: import("../..").RestrictionsState;
|
|
40
|
+
provisioningState: import("../..").ProvisioningState;
|
|
41
|
+
accountSettingsState: import("../..").AccountSettingsState;
|
|
42
|
+
tenantsState: import("../..").TenantsState;
|
|
43
|
+
rolesState: import("../..").RolesState;
|
|
44
|
+
sessionsState: import("../..").SessionsState;
|
|
45
|
+
hostedLoginBox?: boolean | undefined;
|
|
46
|
+
disableSilentRefresh?: boolean | undefined;
|
|
47
|
+
sessionsPolicyState: SessionsPolicyState;
|
|
48
|
+
impersonateState?: import("../..").ImpersonateState | undefined;
|
|
49
|
+
passkeysState?: import("../..").PasskeysState | undefined;
|
|
50
|
+
customLoginState?: import("../..").CustomLoginState | undefined;
|
|
51
|
+
allAccountsState?: import("../..").IAllAccountsState | undefined;
|
|
52
|
+
allAccountsDialogsState?: import("../..").IAllAccountsDialogsState | undefined;
|
|
53
|
+
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
54
|
+
routes: import("../..").AuthPageRoutes;
|
|
55
|
+
header?: any;
|
|
56
|
+
loaderComponent?: any;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
resetSessionsPolicyState: (state: import("../..").AuthState) => {
|
|
60
|
+
onRedirectTo: (path: string, opts?: import("@frontegg/rest-api").RedirectOptions | undefined) => void;
|
|
61
|
+
error?: any;
|
|
62
|
+
isAuthenticated: boolean;
|
|
63
|
+
userIp?: string | undefined;
|
|
64
|
+
isLoading: boolean;
|
|
65
|
+
keepSessionAlive?: boolean | undefined;
|
|
66
|
+
user?: import("../..").User | null | undefined;
|
|
67
|
+
isSSOAuth: boolean;
|
|
68
|
+
ssoACS?: string | undefined;
|
|
69
|
+
includeQueryParam?: boolean | undefined;
|
|
70
|
+
loginState: import("../..").LoginState;
|
|
71
|
+
activateState: import("../..").ActivateAccountState;
|
|
72
|
+
acceptInvitationState: import("../..").AcceptInvitationState;
|
|
73
|
+
forgotPasswordState: import("../..").ForgotPasswordState;
|
|
74
|
+
resetPhoneNumberState: import("../..").ResetPhoneNumberState;
|
|
75
|
+
ssoState: import("../..").SSOState;
|
|
76
|
+
profileState: import("../..").ProfileState;
|
|
77
|
+
mfaState: import("../..").MFAState;
|
|
78
|
+
teamState: import("../..").TeamState;
|
|
79
|
+
groupsState: import("../..").GroupsState;
|
|
80
|
+
groupsDialogsState: import("../..").GroupsDialogsState;
|
|
81
|
+
socialLoginState: import("../..").SocialLoginState;
|
|
82
|
+
signUpState: import("../..").SignUpState;
|
|
83
|
+
apiTokensState: import("../..").ApiTokensState;
|
|
84
|
+
securityPolicyState: import("../..").SecurityPolicyState;
|
|
85
|
+
restrictionsState: import("../..").RestrictionsState;
|
|
86
|
+
provisioningState: import("../..").ProvisioningState;
|
|
87
|
+
accountSettingsState: import("../..").AccountSettingsState;
|
|
88
|
+
tenantsState: import("../..").TenantsState;
|
|
89
|
+
rolesState: import("../..").RolesState;
|
|
90
|
+
sessionsState: import("../..").SessionsState;
|
|
91
|
+
hostedLoginBox?: boolean | undefined;
|
|
92
|
+
disableSilentRefresh?: boolean | undefined;
|
|
93
|
+
sessionsPolicyState: SessionsPolicyState;
|
|
94
|
+
impersonateState?: import("../..").ImpersonateState | undefined;
|
|
95
|
+
passkeysState?: import("../..").PasskeysState | undefined;
|
|
96
|
+
customLoginState?: import("../..").CustomLoginState | undefined;
|
|
97
|
+
allAccountsState?: import("../..").IAllAccountsState | undefined;
|
|
98
|
+
allAccountsDialogsState?: import("../..").IAllAccountsDialogsState | undefined;
|
|
99
|
+
securityCenterState?: import("../..").SecurityCenterState | undefined;
|
|
100
|
+
routes: import("../..").AuthPageRoutes;
|
|
101
|
+
header?: any;
|
|
102
|
+
loaderComponent?: any;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
declare const actions: {
|
|
106
|
+
loadSessionsPolicy: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
107
|
+
createOrUpdateSessionsPolicy: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ISessionConfigurations, boolean>], WithCallback<ISessionConfigurations, boolean>, string, never, never>;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* To be used for actions types after dispatch, and should contains
|
|
111
|
+
* the reducers and actions as standalone function
|
|
112
|
+
*/
|
|
113
|
+
declare type DispatchedActions = {
|
|
114
|
+
loadSessionsPolicy: () => void;
|
|
115
|
+
setSessionsPolicyState: (state: Partial<SessionsPolicyState>) => void;
|
|
116
|
+
resetSessionsPolicyState: () => void;
|
|
117
|
+
createOrUpdateSessionsPolicy: (payload: WithCallback<ISessionConfigurations>) => void;
|
|
118
|
+
};
|
|
119
|
+
export declare type SessionsPolicyActions = DispatchedActions;
|
|
120
|
+
export { sessionsPolicyState, reducers as sessionsPolicyReducers, actions as sessionsPolicyActions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { resetStateByKey, typeReducerForKey } from '
|
|
3
|
-
import { authStoreName } from '
|
|
2
|
+
import { resetStateByKey, typeReducerForKey } from '../../utils';
|
|
3
|
+
import { authStoreName } from '../../../constants';
|
|
4
4
|
const sessionsPolicyState = {
|
|
5
5
|
loading: false,
|
|
6
6
|
configurations: {}
|
|
@@ -4,8 +4,8 @@ const _excluded = ["callback"],
|
|
|
4
4
|
_excluded2 = ["callback"];
|
|
5
5
|
import { takeLatest, put, call, takeLeading, select } from 'redux-saga/effects';
|
|
6
6
|
import { api } from '@frontegg/rest-api';
|
|
7
|
-
import { actions } from '
|
|
8
|
-
import { sessionsConfigDummies } from '
|
|
7
|
+
import { actions } from '../../reducer';
|
|
8
|
+
import { sessionsConfigDummies } from '../../dummy';
|
|
9
9
|
import { securityCenterSagaWrapper } from '../SecurityCenterState/saga';
|
|
10
10
|
function* loadSessionPolicyState() {
|
|
11
11
|
yield put(actions.setSessionsPolicyState({
|
package/auth/SignUp/saga.js
CHANGED
|
@@ -9,7 +9,7 @@ import { AuthenticationTypes } from '../interfaces';
|
|
|
9
9
|
import { getMfaRequiredState } from '../LoginState/saga';
|
|
10
10
|
import { errorHandler } from '../../utils';
|
|
11
11
|
import { isMfaRequired } from '../LoginState/utils';
|
|
12
|
-
import { getSecurityPolicyPublicStateWithCustomLogin } from '../SecurityPolicyState/saga';
|
|
12
|
+
import { getSecurityPolicyPublicStateWithCustomLogin } from '../Security/SecurityPolicyState/saga';
|
|
13
13
|
export function* loadAllowSignUps() {
|
|
14
14
|
yield put(actions.setSignUpState({
|
|
15
15
|
loading: true
|
package/auth/index.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export * from './SignUp/interfaces';
|
|
|
32
32
|
export * from './SignUp';
|
|
33
33
|
export * from './ApiTokensState/interfaces';
|
|
34
34
|
export * from './ApiTokensState';
|
|
35
|
-
export * from './SecurityPolicyState/interfaces';
|
|
36
|
-
export * from './SecurityPolicyState';
|
|
35
|
+
export * from './Security/SecurityPolicyState/interfaces';
|
|
36
|
+
export * from './Security/SecurityPolicyState';
|
|
37
37
|
export * from './AccountSettingsState/interfaces';
|
|
38
38
|
export * from './AccountSettingsState';
|
|
39
39
|
export * from './TenantsState/interfaces';
|
|
@@ -42,19 +42,19 @@ export * from './RolesState/interfaces';
|
|
|
42
42
|
export * from './RolesState';
|
|
43
43
|
export * from './SessionsState';
|
|
44
44
|
export * from './SessionsState/interfaces';
|
|
45
|
-
export * from './SessionsPolicyState';
|
|
46
|
-
export * from './SessionsPolicyState/interfaces';
|
|
47
|
-
export * from './RestrictionsState';
|
|
48
|
-
export * from './RestrictionsState/interfaces';
|
|
45
|
+
export * from './Security/SessionsPolicyState';
|
|
46
|
+
export * from './Security/SessionsPolicyState/interfaces';
|
|
47
|
+
export * from './Security/RestrictionsState';
|
|
48
|
+
export * from './Security/RestrictionsState/interfaces';
|
|
49
49
|
export * from './Provisioning';
|
|
50
50
|
export * from './Provisioning/interfaces';
|
|
51
51
|
export * from './Entitlements';
|
|
52
52
|
export * from './Entitlements/interfaces';
|
|
53
53
|
export * from './PasskeysState';
|
|
54
54
|
export * from './PasskeysState/interfaces';
|
|
55
|
-
export * from './SecurityCenterState';
|
|
56
|
-
export * from './SecurityCenterState/interfaces';
|
|
57
|
-
export * from './SecurityCenterState/types';
|
|
55
|
+
export * from './Security/SecurityCenterState';
|
|
56
|
+
export * from './Security/SecurityCenterState/interfaces';
|
|
57
|
+
export * from './Security/SecurityCenterState/types';
|
|
58
58
|
export * from './CustomLoginState';
|
|
59
59
|
export * from './CustomLoginState/interfaces';
|
|
60
60
|
export * from './MSP/AllAccountsState';
|
|
@@ -536,10 +536,10 @@ declare const _default: {
|
|
|
536
536
|
preVerifyMFAEmailCode: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IPreVerifyMFA, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IPreVerifyMFA, boolean>, string, never, never>;
|
|
537
537
|
verifyMFAEmailCode: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IVerifyMFAEmailCode, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IVerifyMFAEmailCode, boolean>, string, never, never>;
|
|
538
538
|
resetBreachedPassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IForgotPassword], import("@frontegg/rest-api").IForgotPassword, string, never, never>;
|
|
539
|
-
setSecurityCenterState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./SecurityCenterState/interfaces").SecurityCenterState>], Partial<import("./SecurityCenterState/interfaces").SecurityCenterState>, string, never, never>;
|
|
539
|
+
setSecurityCenterState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Security/SecurityCenterState/interfaces").SecurityCenterState>], Partial<import("./Security/SecurityCenterState/interfaces").SecurityCenterState>, string, never, never>;
|
|
540
540
|
resetSecurityCenterState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
541
|
-
setSecurityCenterStateLoader: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./SecurityCenterState/types").SecurityCenterStateIndicator], import("./SecurityCenterState/types").SecurityCenterStateIndicator, string, never, never>;
|
|
542
|
-
setSecurityCenterStateError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./SecurityCenterState/types").SecurityCenterStateIndicator], import("./SecurityCenterState/types").SecurityCenterStateIndicator, string, never, never>;
|
|
541
|
+
setSecurityCenterStateLoader: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./Security/SecurityCenterState/types").SecurityCenterStateIndicator], import("./Security/SecurityCenterState/types").SecurityCenterStateIndicator, string, never, never>;
|
|
542
|
+
setSecurityCenterStateError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./Security/SecurityCenterState/types").SecurityCenterStateIndicator], import("./Security/SecurityCenterState/types").SecurityCenterStateIndicator, string, never, never>;
|
|
543
543
|
setAllAccountDialogsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./MSP/AllAccountsState").IAllAccountsDialogsState>], Partial<import("./MSP/AllAccountsState").IAllAccountsDialogsState>, string, never, never>;
|
|
544
544
|
resetAllAccountDialogsState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
545
545
|
openCreateSubAccountDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("..").WithCallback<import("./MSP/AllAccountsState").TUserJwtPayload & import("./MSP/AllAccountsState").BaseAllAccountsDialogState & {
|
|
@@ -599,10 +599,10 @@ declare const _default: {
|
|
|
599
599
|
resetPasskeysState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
600
600
|
setProvisioningState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Provisioning/interfaces").ProvisioningState>], Partial<import("./Provisioning/interfaces").ProvisioningState>, string, never, never>;
|
|
601
601
|
resetProvisioningState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
602
|
-
setRestrictionsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./RestrictionsState/interfaces").RestrictionsState>], Partial<import("./RestrictionsState/interfaces").RestrictionsState>, string, never, never>;
|
|
603
|
-
setIpRestrictionsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./RestrictionsState/interfaces").IPRestrictionsState>], Partial<import("./RestrictionsState/interfaces").IPRestrictionsState>, string, never, never>;
|
|
604
|
-
setEmailDomainRestrictionsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./RestrictionsState/interfaces").EmailDomainRestrictionsState>], Partial<import("./RestrictionsState/interfaces").EmailDomainRestrictionsState>, string, never, never>;
|
|
605
|
-
setSessionsPolicyState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./SessionsPolicyState/interfaces").SessionsPolicyState>], Partial<import("./SessionsPolicyState/interfaces").SessionsPolicyState>, string, never, never>;
|
|
602
|
+
setRestrictionsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Security/RestrictionsState/interfaces").RestrictionsState>], Partial<import("./Security/RestrictionsState/interfaces").RestrictionsState>, string, never, never>;
|
|
603
|
+
setIpRestrictionsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Security/RestrictionsState/interfaces").IPRestrictionsState>], Partial<import("./Security/RestrictionsState/interfaces").IPRestrictionsState>, string, never, never>;
|
|
604
|
+
setEmailDomainRestrictionsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Security/RestrictionsState/interfaces").EmailDomainRestrictionsState>], Partial<import("./Security/RestrictionsState/interfaces").EmailDomainRestrictionsState>, string, never, never>;
|
|
605
|
+
setSessionsPolicyState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Security/SessionsPolicyState/interfaces").SessionsPolicyState>], Partial<import("./Security/SessionsPolicyState/interfaces").SessionsPolicyState>, string, never, never>;
|
|
606
606
|
resetSessionsPolicyState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
607
607
|
setSessionsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./SessionsState/interfaces").SessionsState>], Partial<import("./SessionsState/interfaces").SessionsState>, string, never, never>;
|
|
608
608
|
resetSessionsState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
@@ -612,7 +612,7 @@ declare const _default: {
|
|
|
612
612
|
resetTenantsState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
613
613
|
setAccountSettingsState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./AccountSettingsState/interfaces").AccountSettingsState>], Partial<import("./AccountSettingsState/interfaces").AccountSettingsState>, string, never, never>;
|
|
614
614
|
resetAccountSettingsState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
615
|
-
setSecurityPolicyState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./SecurityPolicyState/interfaces").SecurityPolicyState>], Partial<import("./SecurityPolicyState/interfaces").SecurityPolicyState>, string, never, never>;
|
|
615
|
+
setSecurityPolicyState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("./Security/SecurityPolicyState/interfaces").SecurityPolicyState>], Partial<import("./Security/SecurityPolicyState/interfaces").SecurityPolicyState>, string, never, never>;
|
|
616
616
|
setSecurityPolicyGlobalState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[Partial<import("../interfaces").WithStatus & {
|
|
617
617
|
policy?: import("@frontegg/rest-api").ISecurityPolicy | undefined;
|
|
618
618
|
}>], Partial<import("../interfaces").WithStatus & {
|
package/auth/index.js
CHANGED
|
@@ -34,8 +34,8 @@ export * from './SignUp/interfaces';
|
|
|
34
34
|
export * from './SignUp';
|
|
35
35
|
export * from './ApiTokensState/interfaces';
|
|
36
36
|
export * from './ApiTokensState';
|
|
37
|
-
export * from './SecurityPolicyState/interfaces';
|
|
38
|
-
export * from './SecurityPolicyState';
|
|
37
|
+
export * from './Security/SecurityPolicyState/interfaces';
|
|
38
|
+
export * from './Security/SecurityPolicyState';
|
|
39
39
|
export * from './AccountSettingsState/interfaces';
|
|
40
40
|
export * from './AccountSettingsState';
|
|
41
41
|
export * from './TenantsState/interfaces';
|
|
@@ -44,19 +44,19 @@ export * from './RolesState/interfaces';
|
|
|
44
44
|
export * from './RolesState';
|
|
45
45
|
export * from './SessionsState';
|
|
46
46
|
export * from './SessionsState/interfaces';
|
|
47
|
-
export * from './SessionsPolicyState';
|
|
48
|
-
export * from './SessionsPolicyState/interfaces';
|
|
49
|
-
export * from './RestrictionsState';
|
|
50
|
-
export * from './RestrictionsState/interfaces';
|
|
47
|
+
export * from './Security/SessionsPolicyState';
|
|
48
|
+
export * from './Security/SessionsPolicyState/interfaces';
|
|
49
|
+
export * from './Security/RestrictionsState';
|
|
50
|
+
export * from './Security/RestrictionsState/interfaces';
|
|
51
51
|
export * from './Provisioning';
|
|
52
52
|
export * from './Provisioning/interfaces';
|
|
53
53
|
export * from './Entitlements';
|
|
54
54
|
export * from './Entitlements/interfaces';
|
|
55
55
|
export * from './PasskeysState';
|
|
56
56
|
export * from './PasskeysState/interfaces';
|
|
57
|
-
export * from './SecurityCenterState';
|
|
58
|
-
export * from './SecurityCenterState/interfaces';
|
|
59
|
-
export * from './SecurityCenterState/types';
|
|
57
|
+
export * from './Security/SecurityCenterState';
|
|
58
|
+
export * from './Security/SecurityCenterState/interfaces';
|
|
59
|
+
export * from './Security/SecurityCenterState/types';
|
|
60
60
|
export * from './CustomLoginState';
|
|
61
61
|
export * from './CustomLoginState/interfaces';
|
|
62
62
|
export * from './MSP/AllAccountsState';
|
package/auth/initialState.js
CHANGED
|
@@ -11,13 +11,13 @@ import { teamState } from './TeamState';
|
|
|
11
11
|
import { socialLoginState } from './SocialLogins';
|
|
12
12
|
import { signUpState } from './SignUp';
|
|
13
13
|
import { apiTokensState } from './ApiTokensState';
|
|
14
|
-
import { securityPolicyState } from './SecurityPolicyState';
|
|
14
|
+
import { securityPolicyState } from './Security/SecurityPolicyState';
|
|
15
15
|
import { accountSettingsState } from './AccountSettingsState';
|
|
16
16
|
import { tenantsState } from './TenantsState';
|
|
17
17
|
import { rolesState } from './RolesState';
|
|
18
18
|
import { sessionsState } from './SessionsState';
|
|
19
|
-
import { sessionsPolicyState } from './SessionsPolicyState';
|
|
20
|
-
import { restrictionsState } from './RestrictionsState';
|
|
19
|
+
import { sessionsPolicyState } from './Security/SessionsPolicyState';
|
|
20
|
+
import { restrictionsState } from './Security/RestrictionsState';
|
|
21
21
|
import { provisioningState } from './Provisioning';
|
|
22
22
|
import { passkeysState } from './PasskeysState';
|
|
23
23
|
import { groupsState } from './GroupsState';
|
|
@@ -25,7 +25,7 @@ import { groupsDialogsState } from './GroupsState/groupsDialogsState';
|
|
|
25
25
|
import { customLoginState } from './CustomLoginState';
|
|
26
26
|
import { allAccountsState } from './MSP/AllAccountsState';
|
|
27
27
|
import { allAccountsDialogsState } from './MSP/AllAccountsState/allAccountsDialogsState';
|
|
28
|
-
import { securityCenterState } from './SecurityCenterState';
|
|
28
|
+
import { securityCenterState } from './Security/SecurityCenterState';
|
|
29
29
|
import { defaultFronteggRoutes } from './LoginState/consts';
|
|
30
30
|
export const reinitializeState = {
|
|
31
31
|
isAuthenticated: false,
|
package/auth/interfaces.d.ts
CHANGED
|
@@ -10,21 +10,21 @@ import { TeamState } from './TeamState/interfaces';
|
|
|
10
10
|
import { AcceptInvitationState } from './AcceptInvitationState/interfaces';
|
|
11
11
|
import { SignUpState } from './SignUp/interfaces';
|
|
12
12
|
import { SocialLoginState } from './SocialLogins/interfaces';
|
|
13
|
-
import { SecurityPolicyState } from './SecurityPolicyState/interfaces';
|
|
13
|
+
import { SecurityPolicyState } from './Security/SecurityPolicyState/interfaces';
|
|
14
14
|
import { AccountSettingsState } from './AccountSettingsState/interfaces';
|
|
15
15
|
import { TenantsState } from './TenantsState/interfaces';
|
|
16
16
|
import { RolesState } from './RolesState/interfaces';
|
|
17
17
|
import { ResetPhoneNumberState } from './ResetPhoneNumberState/interfaces';
|
|
18
18
|
import { SessionsState } from './SessionsState/interfaces';
|
|
19
|
-
import { SessionsPolicyState } from './SessionsPolicyState/interfaces';
|
|
20
|
-
import { RestrictionsState } from './RestrictionsState/interfaces';
|
|
19
|
+
import { SessionsPolicyState } from './Security/SessionsPolicyState/interfaces';
|
|
20
|
+
import { RestrictionsState } from './Security/RestrictionsState/interfaces';
|
|
21
21
|
import { ProvisioningState } from './Provisioning/interfaces';
|
|
22
22
|
import { ImpersonateState } from './ImpersonationState/interfaces';
|
|
23
23
|
import { PasskeysState } from './PasskeysState/interfaces';
|
|
24
24
|
import { GroupsDialogsState, GroupsState } from './GroupsState/interfaces';
|
|
25
25
|
import { CustomLoginState } from './CustomLoginState/interfaces';
|
|
26
26
|
import { IAllAccountsDialogsState, IAllAccountsState } from './MSP/AllAccountsState/types';
|
|
27
|
-
import { SecurityCenterState } from './SecurityCenterState/interfaces';
|
|
27
|
+
import { SecurityCenterState } from './Security/SecurityCenterState/interfaces';
|
|
28
28
|
interface Actor {
|
|
29
29
|
sub?: string;
|
|
30
30
|
}
|
package/auth/reducer.d.ts
CHANGED
|
@@ -10,13 +10,13 @@ import { TeamActions } from './TeamState';
|
|
|
10
10
|
import { SocialLoginActions } from './SocialLogins';
|
|
11
11
|
import { SignUpActions } from './SignUp';
|
|
12
12
|
import { ApiTokensActions } from './ApiTokensState';
|
|
13
|
-
import { SecurityPolicyActions } from './SecurityPolicyState';
|
|
13
|
+
import { SecurityPolicyActions } from './Security/SecurityPolicyState';
|
|
14
14
|
import { AccountSettingsActions } from './AccountSettingsState';
|
|
15
15
|
import { TenantsActions } from './TenantsState';
|
|
16
16
|
import { RolesActions } from './RolesState';
|
|
17
17
|
import { ResetPhoneNumberActions } from './ResetPhoneNumberState';
|
|
18
18
|
import { SessionsActions } from './SessionsState';
|
|
19
|
-
import { RestrictionsActions } from './RestrictionsState';
|
|
19
|
+
import { RestrictionsActions } from './Security/RestrictionsState';
|
|
20
20
|
import { ProvisioningActions } from './Provisioning';
|
|
21
21
|
import { ImpersonateActions } from './ImpersonationState';
|
|
22
22
|
import { PasskeysActions } from './PasskeysState';
|
|
@@ -25,7 +25,7 @@ import { GroupsDialogsActions } from './GroupsState/groupsDialogsState';
|
|
|
25
25
|
import { CustomLoginActions } from './CustomLoginState';
|
|
26
26
|
import { AllAccountsActions } from './MSP/AllAccountsState';
|
|
27
27
|
import { AllAccountsDialogsActions } from './MSP/AllAccountsState/allAccountsDialogsState';
|
|
28
|
-
import { SecurityCenterActions } from './SecurityCenterState';
|
|
28
|
+
import { SecurityCenterActions } from './Security/SecurityCenterState';
|
|
29
29
|
import { UserEntitlementsResponse } from '@frontegg/rest-api';
|
|
30
30
|
import { LoadEntitlementsActionPayload } from './Entitlements/interfaces';
|
|
31
31
|
declare const reducer: import("redux").Reducer<AuthState, import("redux").AnyAction>;
|
package/auth/reducer.js
CHANGED
|
@@ -14,14 +14,14 @@ import { teamActions, teamReducers } from './TeamState';
|
|
|
14
14
|
import { socialLoginsActions, socialLoginsReducer } from './SocialLogins';
|
|
15
15
|
import { signUpActions, signUpReducers } from './SignUp';
|
|
16
16
|
import { apiTokensActions, apiTokensReducers } from './ApiTokensState';
|
|
17
|
-
import { securityPolicyActions, securityPolicyReducers } from './SecurityPolicyState';
|
|
17
|
+
import { securityPolicyActions, securityPolicyReducers } from './Security/SecurityPolicyState';
|
|
18
18
|
import { accountSettingsActions, accountSettingsReducers } from './AccountSettingsState';
|
|
19
19
|
import { tenantsActions, tenantsReducers } from './TenantsState';
|
|
20
20
|
import { rolesActions, rolesReducers } from './RolesState';
|
|
21
21
|
import { resetPhoneNumberActions, resetPhoneNumberReducers } from './ResetPhoneNumberState';
|
|
22
22
|
import { sessionsActions, sessionsReducers } from './SessionsState';
|
|
23
|
-
import { sessionsPolicyActions, sessionsPolicyReducers } from './SessionsPolicyState';
|
|
24
|
-
import { restrictionsActions, restrictionsReducers } from './RestrictionsState';
|
|
23
|
+
import { sessionsPolicyActions, sessionsPolicyReducers } from './Security/SessionsPolicyState';
|
|
24
|
+
import { restrictionsActions, restrictionsReducers } from './Security/RestrictionsState';
|
|
25
25
|
import { provisioningActions, provisioningReducers } from './Provisioning';
|
|
26
26
|
import { impersonateActions, impersonateReducers } from './ImpersonationState';
|
|
27
27
|
import { passkeysActions, passkeysReducers } from './PasskeysState';
|
|
@@ -30,7 +30,7 @@ import { groupsDialogsActions, groupsDialogsReducers } from './GroupsState/group
|
|
|
30
30
|
import { customLoginActions, customLoginReducers } from './CustomLoginState';
|
|
31
31
|
import { allAccountsActions, allAccountsReducers } from './MSP/AllAccountsState';
|
|
32
32
|
import { allAccountsDialogsReducers } from './MSP/AllAccountsState/allAccountsDialogsState';
|
|
33
|
-
import { securityCenterActions, securityCenterReducers } from './SecurityCenterState';
|
|
33
|
+
import { securityCenterActions, securityCenterReducers } from './Security/SecurityCenterState';
|
|
34
34
|
const {
|
|
35
35
|
reducer,
|
|
36
36
|
actions: sliceActions
|
package/auth/saga.js
CHANGED
|
@@ -11,14 +11,14 @@ import { socialLoginsSaga } from './SocialLogins/saga';
|
|
|
11
11
|
import { signUpSaga } from './SignUp/saga';
|
|
12
12
|
import { all, call } from 'redux-saga/effects';
|
|
13
13
|
import { apiTokensSaga, apiTokensSagaMock } from './ApiTokensState/saga';
|
|
14
|
-
import { securityPolicySagas, securityPolicySagasMock } from './SecurityPolicyState/saga';
|
|
14
|
+
import { securityPolicySagas, securityPolicySagasMock } from './Security/SecurityPolicyState/saga';
|
|
15
15
|
import { accountSettingsSaga, accountSettingsSagaMock } from './AccountSettingsState/saga';
|
|
16
16
|
import { tenantsSagas, tenantsSagasMock } from './TenantsState/saga';
|
|
17
17
|
import { rolesSagas, rolesSagasMock } from './RolesState/saga';
|
|
18
18
|
import { resetPhoneNumberSagas } from './ResetPhoneNumberState/saga';
|
|
19
19
|
import { sessionsSaga, sessionsSagaMock } from './SessionsState/saga';
|
|
20
|
-
import { sessionsPolicySaga, sessionsPolicySagaMock } from './SessionsPolicyState/saga';
|
|
21
|
-
import { restrictionsSagaMock, restrictionsSagas } from './RestrictionsState/saga';
|
|
20
|
+
import { sessionsPolicySaga, sessionsPolicySagaMock } from './Security/SessionsPolicyState/saga';
|
|
21
|
+
import { restrictionsSagaMock, restrictionsSagas } from './Security/RestrictionsState/saga';
|
|
22
22
|
import { provisionSagas } from './Provisioning/saga';
|
|
23
23
|
import { impersonateSagas } from './ImpersonationState/saga';
|
|
24
24
|
import { passkeysSagas } from './PasskeysState/saga';
|
|
@@ -26,7 +26,7 @@ import { groupsSagas, groupsSagasMock } from './GroupsState/saga';
|
|
|
26
26
|
import { customLoginSagas } from './CustomLoginState/saga';
|
|
27
27
|
import { allAccountsSagas } from './MSP/AllAccountsState/saga';
|
|
28
28
|
import { entitlementsSagas } from './Entitlements/saga';
|
|
29
|
-
import { securityCenterSagas, securityCenterSagasMock } from './SecurityCenterState/saga';
|
|
29
|
+
import { securityCenterSagas, securityCenterSagasMock } from './Security/SecurityCenterState/saga';
|
|
30
30
|
export function* sagas() {
|
|
31
31
|
yield all([call(loginSagas), call(activateSagas), call(acceptInvitationSagas), call(forgotPasswordSagas), call(resetPhoneNumberSagas), call(ssoSagas), call(ssoSagasV2), call(profileSagas), call(customLoginSagas), call(mfaSagas), call(teamSagas), call(groupsSagas), call(socialLoginsSaga), call(signUpSaga), call(apiTokensSaga), call(securityPolicySagas), call(accountSettingsSaga), call(tenantsSagas), call(rolesSagas), call(sessionsSaga), call(sessionsPolicySaga), call(restrictionsSagas), call(provisionSagas), call(impersonateSagas), call(passkeysSagas), call(allAccountsSagas), call(entitlementsSagas), call(securityCenterSagas)]);
|
|
32
32
|
}
|
package/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var _saga2 = require("../../vendor/saga");
|
|
|
30
30
|
var _helpers = require("../../helpers");
|
|
31
31
|
var _interfaces5 = require("../ResetPhoneNumberState/interfaces");
|
|
32
32
|
var _utils = require("../utils");
|
|
33
|
-
var _saga3 = require("../SecurityPolicyState/saga");
|
|
33
|
+
var _saga3 = require("../Security/SecurityPolicyState/saga");
|
|
34
34
|
var _helpers2 = require("../PasskeysState/helpers");
|
|
35
35
|
var _utils2 = require("./utils");
|
|
36
36
|
var _utils3 = require("../../utils");
|
|
@@ -473,22 +473,17 @@ function* saveSSOConfigurationByUrl({
|
|
|
473
473
|
} = payload;
|
|
474
474
|
const ssoConfigurations = yield (0, _effects.select)(state => state.auth.ssoState.ssoConfigurations);
|
|
475
475
|
try {
|
|
476
|
-
const metadata = yield (0, _effects.call)(_restApi.fetch.Get, metadataUrl, undefined, {
|
|
477
|
-
responseType: 'plain'
|
|
478
|
-
});
|
|
479
|
-
|
|
480
|
-
// TODO: remove any after adding configMetadata for @frontegg/rest-api
|
|
481
476
|
const body = {
|
|
482
|
-
|
|
477
|
+
url: metadataUrl,
|
|
483
478
|
configMetadata
|
|
484
479
|
};
|
|
485
480
|
let newSsoConfiguration;
|
|
486
481
|
let newSsoConfigurations;
|
|
487
482
|
if (ssoConfigId) {
|
|
488
|
-
newSsoConfiguration = yield (0, _effects.call)(_restApi.api.auth.
|
|
483
|
+
newSsoConfiguration = yield (0, _effects.call)(_restApi.api.auth.updateSSOConfigurationByMetadataUrl, ssoConfigId, body);
|
|
489
484
|
newSsoConfigurations = ssoConfigurations.map(ssoConfig => ssoConfig.id === ssoConfigId ? newSsoConfiguration : ssoConfig);
|
|
490
485
|
} else {
|
|
491
|
-
newSsoConfiguration = yield (0, _effects.call)(_restApi.api.auth.
|
|
486
|
+
newSsoConfiguration = yield (0, _effects.call)(_restApi.api.auth.createSSOConfigurationByMetadataUrl, body);
|
|
492
487
|
newSsoConfigurations = [newSsoConfiguration, ...ssoConfigurations];
|
|
493
488
|
}
|
|
494
489
|
yield (0, _effects.put)(_reducer.actions.setSSOState({
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.restrictionsState = exports.restrictionsReducers = exports.restrictionsActions = void 0;
|
|
7
7
|
var _toolkit = require("@reduxjs/toolkit");
|
|
8
|
-
var _utils = require("
|
|
9
|
-
var _constants = require("
|
|
8
|
+
var _utils = require("../../utils");
|
|
9
|
+
var _constants = require("../../../constants");
|
|
10
10
|
var _restApi = require("@frontegg/rest-api");
|
|
11
11
|
const restrictionsState = {
|
|
12
12
|
ipRestrictions: {
|
|
@@ -10,12 +10,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var _effects = require("redux-saga/effects");
|
|
12
12
|
var _restApi = require("@frontegg/rest-api");
|
|
13
|
-
var _reducer = require("
|
|
13
|
+
var _reducer = require("../../reducer");
|
|
14
14
|
var _uuid = require("uuid");
|
|
15
|
-
var _constants = require("
|
|
16
|
-
var _dummy = require("
|
|
17
|
-
var _utils = require("
|
|
18
|
-
var _utils2 = require("
|
|
15
|
+
var _constants = require("../../../constants");
|
|
16
|
+
var _dummy = require("../../dummy");
|
|
17
|
+
var _utils = require("../../utils");
|
|
18
|
+
var _utils2 = require("../../../utils");
|
|
19
19
|
var _saga = require("../SecurityCenterState/saga");
|
|
20
20
|
const _excluded = ["callback"],
|
|
21
21
|
_excluded2 = ["callback"],
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.securityCenterState = exports.securityCenterReducers = exports.securityCenterActions = void 0;
|
|
7
7
|
var _toolkit = require("@reduxjs/toolkit");
|
|
8
|
-
var _constants = require("
|
|
9
|
-
var _utils = require("
|
|
8
|
+
var _constants = require("../../../constants");
|
|
9
|
+
var _utils = require("../../utils");
|
|
10
10
|
const securityCenterState = {
|
|
11
11
|
loaders: {},
|
|
12
12
|
errors: {},
|
|
@@ -12,12 +12,12 @@ exports.securityCenterSagas = securityCenterSagas;
|
|
|
12
12
|
exports.securityCenterSagasMock = securityCenterSagasMock;
|
|
13
13
|
exports.sendResetBreachedPasswordEmails = sendResetBreachedPasswordEmails;
|
|
14
14
|
var _effects = require("redux-saga/effects");
|
|
15
|
-
var _reducer = require("
|
|
16
|
-
var _utils = require("
|
|
15
|
+
var _reducer = require("../../reducer");
|
|
16
|
+
var _utils = require("../../../utils");
|
|
17
17
|
var _restApi = require("@frontegg/rest-api");
|
|
18
18
|
var _types = require("./types");
|
|
19
|
-
var _index = require("
|
|
20
|
-
var _dummy = require("
|
|
19
|
+
var _index = require("../../../index");
|
|
20
|
+
var _dummy = require("../../dummy");
|
|
21
21
|
/**
|
|
22
22
|
* This function is used to wrap sagas of the security page.
|
|
23
23
|
* This function returns function,
|