@authing/guard-shim-react 4.5.2-alpha.2 → 4.5.2-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/dist/guard.min.css +2 -2
- package/dist/guard.min.js +545 -517
- package/dist/typings/src/Login/core/withDingTalkQrcode.d.ts +1 -0
- package/dist/typings/src/Login/core/withWeComQrcode.d.ts +1 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/Type/application.d.ts +14 -1
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoginWithDingTalkQrcode: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoginWithWeComQrcode: (props: any) => JSX.Element;
|
|
@@ -58,7 +58,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
58
58
|
getOriginAccount: () => string;
|
|
59
59
|
getOriginWay: () => string;
|
|
60
60
|
} | undefined;
|
|
61
|
-
referMultipleState: ((type: "
|
|
61
|
+
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
62
62
|
backfillData: BackFillMultipleState | undefined;
|
|
63
63
|
defaultQrWay: string | undefined;
|
|
64
64
|
};
|
|
@@ -10,7 +10,9 @@ export declare enum LoginMethods {
|
|
|
10
10
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
11
11
|
AD = "ad",
|
|
12
12
|
WechatMpQrcode = "wechatmp-qrcode",
|
|
13
|
-
AuthingOtpPush = "authing-otp-push"
|
|
13
|
+
AuthingOtpPush = "authing-otp-push",
|
|
14
|
+
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect",
|
|
15
|
+
DingTalkQrcode = "dingtalk-qrcode"
|
|
14
16
|
}
|
|
15
17
|
export declare enum OIDCConnectionMode {
|
|
16
18
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -90,6 +92,8 @@ export interface ICasConnectionConfig {
|
|
|
90
92
|
casConnectionLoginUrl: string;
|
|
91
93
|
}
|
|
92
94
|
export interface SocialConnectionItem {
|
|
95
|
+
id: string;
|
|
96
|
+
embedded: boolean;
|
|
93
97
|
name: string;
|
|
94
98
|
name_en: string;
|
|
95
99
|
displayName: string;
|
|
@@ -114,6 +118,13 @@ export interface QrCodeItem {
|
|
|
114
118
|
id: string;
|
|
115
119
|
title: string;
|
|
116
120
|
isDefault?: boolean;
|
|
121
|
+
QRConfig?: {
|
|
122
|
+
corpId: string;
|
|
123
|
+
agentId: string;
|
|
124
|
+
redirectUrl: string;
|
|
125
|
+
identifier: string;
|
|
126
|
+
clientId?: string;
|
|
127
|
+
};
|
|
117
128
|
}
|
|
118
129
|
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
|
119
130
|
export interface OidcClientMetadata {
|
|
@@ -257,6 +268,8 @@ export interface ApplicationConfig {
|
|
|
257
268
|
displayName: string;
|
|
258
269
|
logo: string;
|
|
259
270
|
config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
|
|
271
|
+
/** 是否开启内嵌模式 */
|
|
272
|
+
embedded?: boolean;
|
|
260
273
|
}[];
|
|
261
274
|
ssoPageComponentDisplay: {
|
|
262
275
|
autoRegisterThenLoginHintInfo: boolean;
|
|
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
53
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
54
|
passwordLoginMethods?: string[] | undefined;
|
|
55
55
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
56
|
+
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
|
@@ -77,6 +77,8 @@ export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFi
|
|
|
77
77
|
export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
78
78
|
export declare const getSortTabs: (tabs: string[], tab?: string) => string[];
|
|
79
79
|
export declare const isDisabled: (values: Record<string, any>, requireNames?: string[]) => boolean;
|
|
80
|
+
export declare const isWeComOrigin: (event: MessageEvent) => boolean;
|
|
81
|
+
export declare const isDingTalkOrigin: (origin: string) => boolean;
|
|
80
82
|
export * from './popupCenter';
|
|
81
83
|
export * from './clipboard';
|
|
82
84
|
export * from './locales';
|
package/package.json
CHANGED