@authing/guard-shim-react18 4.5.50-alpha.6 → 4.5.50-alpha.8
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/dist/guard.min.js +2308 -2284
- package/dist/typings/src/Login/core/withMFA/MFAFormItemIdentify.d.ts +17 -0
- package/dist/typings/src/Login/core/withMFA/MFAInputIdentify.d.ts +7 -0
- package/dist/typings/src/Login/core/withMFA/index.d.ts +2 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/Login/interface.d.ts +2 -0
- package/dist/typings/src/Type/application.d.ts +8 -1
- package/dist/typings/src/Type/index.d.ts +4 -0
- package/dist/typings/src/_utils/config/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MFAInputMethod } from '../../../Type';
|
|
2
|
+
import { ReactNode } from 'shim-react';
|
|
3
|
+
interface MFAFormItemIdentifyProps {
|
|
4
|
+
name: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
form: any;
|
|
7
|
+
currentMethod: MFAInputMethod;
|
|
8
|
+
methods: MFAInputMethod[];
|
|
9
|
+
areaCode?: string;
|
|
10
|
+
checkRepeat?: boolean;
|
|
11
|
+
checkExist?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function MFAFormItemIdentify(props: MFAFormItemIdentifyProps): JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputProps } from 'shim-antd';
|
|
2
|
+
import { React } from 'shim-react';
|
|
3
|
+
import { MfaLoginMethods } from '../../../Type/application';
|
|
4
|
+
export interface InputIdentifyProps extends InputProps {
|
|
5
|
+
methods: MfaLoginMethods[];
|
|
6
|
+
}
|
|
7
|
+
export declare const InputIdentify: React.FC<InputIdentifyProps>;
|
|
@@ -62,7 +62,7 @@ declare function useLoginSelectAccount(setLoginWay: React.Dispatch<any>): {
|
|
|
62
62
|
getOriginAccount: () => string;
|
|
63
63
|
getOriginWay: () => string;
|
|
64
64
|
} | undefined;
|
|
65
|
-
referMultipleState: ((type: "
|
|
65
|
+
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
66
66
|
backfillData: BackFillMultipleState | undefined;
|
|
67
67
|
defaultQrWay: string | undefined;
|
|
68
68
|
};
|
|
@@ -8,6 +8,8 @@ export interface LoginConfig extends IG2Config {
|
|
|
8
8
|
disableRegister?: boolean;
|
|
9
9
|
defaultLoginMethod?: LoginMethods;
|
|
10
10
|
loginMethods?: LoginMethods[];
|
|
11
|
+
defaultLoginTab?: LoginMethods;
|
|
12
|
+
loginTabs?: LoginMethods[];
|
|
11
13
|
passwordLoginMethods?: string[];
|
|
12
14
|
socialConnections?: SocialConnectionProvider[];
|
|
13
15
|
socialConnectionsBtnShape?: 'default' | 'button' | 'icon';
|
|
@@ -17,7 +17,8 @@ export declare enum LoginMethods {
|
|
|
17
17
|
WECHATWORKAGENCYQRCONNECT = "wechatwork-agency-qrcode",// 代开发形式的内部应用
|
|
18
18
|
DingTalkQrcode = "dingtalk-qrcode",//钉钉扫码
|
|
19
19
|
Passkey = "passkey",// passkey
|
|
20
|
-
ZJZWFWQrcode = "zjzwfw-qrcode"
|
|
20
|
+
ZJZWFWQrcode = "zjzwfw-qrcode",// 浙江政务钉
|
|
21
|
+
MFA = "mfa"
|
|
21
22
|
}
|
|
22
23
|
export declare enum OIDCConnectionMode {
|
|
23
24
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -181,6 +182,9 @@ export interface ApplicationVerifyCodeTabConfig {
|
|
|
181
182
|
validRegisterMethods?: string[];
|
|
182
183
|
validLoginMethods?: string[];
|
|
183
184
|
}
|
|
185
|
+
export interface ApplicationMfaTabConfig {
|
|
186
|
+
validLoginMethods?: MfaLoginMethods[];
|
|
187
|
+
}
|
|
184
188
|
export interface Agreement {
|
|
185
189
|
id: number;
|
|
186
190
|
title: string;
|
|
@@ -191,6 +195,7 @@ export interface Agreement {
|
|
|
191
195
|
export type PasswordLoginMethods = 'username-password' | 'email-password' | 'phone-password';
|
|
192
196
|
export type VerifyLoginMethods = 'email-code' | 'phone-code';
|
|
193
197
|
export type ComplateFiledsPlace = 'register' | 'login';
|
|
198
|
+
export type MfaLoginMethods = 'email-mfa' | 'phone-mfa';
|
|
194
199
|
export interface TabFieldsI18nItem {
|
|
195
200
|
key: string;
|
|
196
201
|
label: string;
|
|
@@ -313,6 +318,7 @@ export interface ApplicationConfig {
|
|
|
313
318
|
verifyCode?: LoginTypeI18nProps;
|
|
314
319
|
ad?: LoginTypeI18nProps;
|
|
315
320
|
ldap?: LoginTypeI18nProps;
|
|
321
|
+
mfa?: LoginTypeI18nProps;
|
|
316
322
|
};
|
|
317
323
|
idpLayout?: {
|
|
318
324
|
maxConns: number;
|
|
@@ -324,6 +330,7 @@ export interface ApplicationConfig {
|
|
|
324
330
|
oidcConfig: OidcClientMetadata;
|
|
325
331
|
passwordTabConfig: ApplicationPasswordTabConfig;
|
|
326
332
|
verifyCodeTabConfig?: ApplicationVerifyCodeTabConfig;
|
|
333
|
+
mfaTabConfig?: ApplicationMfaTabConfig;
|
|
327
334
|
agreementEnabled: boolean;
|
|
328
335
|
agreements: Agreement[];
|
|
329
336
|
customPasswordStrength: any;
|
|
@@ -61,6 +61,10 @@ export declare enum InputMethod {
|
|
|
61
61
|
EmailCode = "email-code",
|
|
62
62
|
PhoneCode = "phone-code"
|
|
63
63
|
}
|
|
64
|
+
export declare enum MFAInputMethod {
|
|
65
|
+
PhoneMfa = "phone-mfa",
|
|
66
|
+
EmailMfa = "email-mfa"
|
|
67
|
+
}
|
|
64
68
|
export declare enum GuardPageSene {
|
|
65
69
|
Global = "global"
|
|
66
70
|
}
|
|
@@ -52,9 +52,11 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
52
52
|
disableResetPwd?: boolean | undefined;
|
|
53
53
|
defaultLoginMethod?: LoginMethods | undefined;
|
|
54
54
|
loginMethods?: LoginMethods[] | undefined;
|
|
55
|
+
defaultLoginTab?: LoginMethods | undefined;
|
|
56
|
+
loginTabs?: LoginMethods[] | undefined;
|
|
55
57
|
passwordLoginMethods?: string[] | undefined;
|
|
56
58
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
57
|
-
socialConnectionsBtnShape?: "button" | "
|
|
59
|
+
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
58
60
|
enterpriseConnections?: string[] | undefined;
|
|
59
61
|
qrCodeScanOptions?: {
|
|
60
62
|
extIdpConnId?: string | undefined;
|
package/package.json
CHANGED