@authing/guard-shim-react 4.5.6 → 4.5.7
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 +1 -1
- package/dist/guard.min.js +832 -806
- 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/Type/application.d.ts +13 -0
- 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;
|
|
@@ -11,6 +11,8 @@ export declare enum LoginMethods {
|
|
|
11
11
|
AD = "ad",
|
|
12
12
|
WechatMpQrcode = "wechatmp-qrcode",
|
|
13
13
|
AuthingOtpPush = "authing-otp-push",
|
|
14
|
+
WechatworkCorpQrconnect = "wechatwork-corp-qrconnect",
|
|
15
|
+
DingTalkQrcode = "dingtalk-qrcode",
|
|
14
16
|
Passkey = "passkey"
|
|
15
17
|
}
|
|
16
18
|
export declare enum OIDCConnectionMode {
|
|
@@ -91,6 +93,8 @@ export interface ICasConnectionConfig {
|
|
|
91
93
|
casConnectionLoginUrl: string;
|
|
92
94
|
}
|
|
93
95
|
export interface SocialConnectionItem {
|
|
96
|
+
id: string;
|
|
97
|
+
embedded: boolean;
|
|
94
98
|
name: string;
|
|
95
99
|
name_en: string;
|
|
96
100
|
displayName: string;
|
|
@@ -115,6 +119,13 @@ export interface QrCodeItem {
|
|
|
115
119
|
id: string;
|
|
116
120
|
title: string;
|
|
117
121
|
isDefault?: boolean;
|
|
122
|
+
QRConfig?: {
|
|
123
|
+
corpId: string;
|
|
124
|
+
agentId: string;
|
|
125
|
+
redirectUrl: string;
|
|
126
|
+
identifier: string;
|
|
127
|
+
clientId?: string;
|
|
128
|
+
};
|
|
118
129
|
}
|
|
119
130
|
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
|
120
131
|
export interface OidcClientMetadata {
|
|
@@ -258,6 +269,8 @@ export interface ApplicationConfig {
|
|
|
258
269
|
displayName: string;
|
|
259
270
|
logo: string;
|
|
260
271
|
config: ISamlConnectionConfig | OIDCConnectionConfig | ICasConnectionConfig | IAzureAdConnectionConfig | IOAuthConnectionConfig;
|
|
272
|
+
/** 是否开启内嵌模式 */
|
|
273
|
+
embedded?: boolean;
|
|
261
274
|
}[];
|
|
262
275
|
ssoPageComponentDisplay: {
|
|
263
276
|
autoRegisterThenLoginHintInfo: boolean;
|
|
@@ -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';
|