@authing/guard-shim-react 4.5.19-fehorizon.1 → 4.5.19-ningdon.1

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.
@@ -0,0 +1,55 @@
1
+ export declare const mock: {
2
+ code: number;
3
+ statusCode: number;
4
+ apiCode: number;
5
+ message: string;
6
+ data: {
7
+ mfaToken: string;
8
+ nickname: null;
9
+ email: null;
10
+ phoneCountryCode: null;
11
+ mfaPhone: string;
12
+ mfaEmail: null;
13
+ mfaPhoneCountryCode: string;
14
+ username: string;
15
+ avatar: string;
16
+ passkeyEnabled: boolean;
17
+ faceMfaEnabled: boolean;
18
+ totpMfaEnabled: boolean;
19
+ ningDonMfaEnable: boolean;
20
+ applicationMfa: {
21
+ mfaPolicy: string;
22
+ status: number;
23
+ sort: number;
24
+ }[];
25
+ customPasswordStrength: {
26
+ enabled: boolean;
27
+ zhMessageOpen: boolean;
28
+ enMessageOpen: boolean;
29
+ twMessageOpen: boolean;
30
+ jpMessageOpen: boolean;
31
+ };
32
+ passwordStrength: number;
33
+ customPasswordRuleConfig: {
34
+ passwordLength: number;
35
+ passwordMaxLength: number;
36
+ passwordRuleConfig: {
37
+ number: boolean;
38
+ uppercaseLetter: boolean;
39
+ lowercaseLetter: boolean;
40
+ commonSymbol: boolean;
41
+ consecutiveCharacter: boolean;
42
+ singleCharacter: boolean;
43
+ accountUsername: boolean;
44
+ commonPassword: boolean;
45
+ passwordStrengthTypeDigit: number;
46
+ };
47
+ specificPassword: never[];
48
+ specificPasswordEnable: boolean;
49
+ };
50
+ forcedCycleUnit: string;
51
+ enableFirstLoginResetPasswordVerifyPhone: boolean;
52
+ };
53
+ flowHandle: string;
54
+ };
55
+ export default mock;
@@ -4,6 +4,7 @@ export declare enum MfaBusinessAction {
4
4
  VerifyEmail = "verify-email",
5
5
  VerifySms = "verify-sms",
6
6
  VerifyTotp = "verify-totp",
7
+ VerifyNingdon = "verify-ningdon",
7
8
  VerifyFace = "verify-face",
8
9
  AssociateFace = "associate-face",
9
10
  PasskeyBind = "passkey-bind",
@@ -25,6 +26,10 @@ interface VerifyTotpContent {
25
26
  totp: string;
26
27
  mfaToken?: string;
27
28
  }
29
+ interface VerifyNingdonContent {
30
+ totp: string;
31
+ mfaToken?: string;
32
+ }
28
33
  interface VerifyFaceContent {
29
34
  photo: string;
30
35
  mfaToken?: string;
@@ -49,6 +54,7 @@ interface GetPasskeyVerifyChallengeParams {
49
54
  export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<AuthingGuardResponse<any>>;
50
55
  export declare const VerifySms: (content: VerifySmsContent) => Promise<AuthingGuardResponse<any>>;
51
56
  export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>;
57
+ export declare const VerifyNingdon: (content: VerifyNingdonContent) => Promise<AuthingGuardResponse<any>>;
52
58
  export declare const VerifyFace: (content: VerifyFaceContent) => Promise<AuthingGuardResponse<any>>;
53
59
  export declare const AssociateFace: (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>;
54
60
  export declare const GetPasskeyBindChallenge: (content: GetPasskeyBindChallengeParams) => Promise<AuthingGuardResponse<CredentialCreationOptionsJSON>>;
@@ -63,5 +69,6 @@ export declare const useMfaBusinessRequest: () => {
63
69
  "associate-face": (content: AssociateFaceContent) => Promise<AuthingGuardResponse<any>>;
64
70
  "passkey-bind": (content: BindPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
65
71
  "passkey-verify": (content: VerifyPasskeyContent) => Promise<AuthingGuardResponse<any>> | null;
72
+ "verify-ningdon": (content: VerifyNingdonContent) => Promise<AuthingGuardResponse<any>>;
66
73
  };
67
74
  export {};
@@ -0,0 +1,19 @@
1
+ import { React } from 'shim-react';
2
+ import { GuardMFAInitData, MFAConfig } from '../interface';
3
+ export interface BindNingdonMFATotpProps {
4
+ initData: GuardMFAInitData;
5
+ changeModule: any;
6
+ }
7
+ export declare const BindNingdonMFATotp: React.FC<BindNingdonMFATotpProps>;
8
+ export interface VerifyNingdonMFATotpProps {
9
+ mfaToken: string;
10
+ mfaLogin: any;
11
+ }
12
+ export declare const VerifyNingdonMFATotp: React.FC<VerifyNingdonMFATotpProps>;
13
+ export interface NingdonMFATotpProps {
14
+ changeModule: any;
15
+ config: MFAConfig;
16
+ initData: GuardMFAInitData;
17
+ mfaLogin: any;
18
+ }
19
+ export declare const NingdonMFATotp: React.FC<NingdonMFATotpProps>;
@@ -12,7 +12,8 @@ export declare enum MFAType {
12
12
  EMAIL = "EMAIL",
13
13
  TOTP = "OTP",
14
14
  FACE = "FACE",
15
- PASSKEY = "PASSKEY"
15
+ PASSKEY = "PASSKEY",
16
+ NINGDON = "NINGDON"
16
17
  }
17
18
  export interface GuardMFAInitData {
18
19
  mfaToken: string;
@@ -24,6 +25,7 @@ export interface GuardMFAInitData {
24
25
  phoneCountryCode?: string;
25
26
  faceMfaEnabled: boolean;
26
27
  totpMfaEnabled: boolean;
28
+ ningDonMfaEnable: boolean;
27
29
  email?: string;
28
30
  phone?: string;
29
31
  avatar?: string;
@@ -7,8 +7,6 @@ export declare const getPublicConfig: (appId: string) => ApplicationConfig;
7
7
  export declare const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
8
8
  export declare const getPageConfig: (appId: string) => GuardPageConfig;
9
9
  export declare const setPageConfig: (appId: string, config: GuardPageConfig) => GuardPageConfig;
10
- export declare const setMacAddress: (address: string) => void;
11
- export declare const getMacAddressHeader: () => string;
12
10
  export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: Partial<GuardLocalConfig>) => GuardLocalConfig | undefined;
13
11
  /**
14
12
  * 请求服务console关于guard的配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.19-fehorizon.1",
3
+ "version": "4.5.19-ningdon.1",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",