MfaVerificationRequiredState class

州政府表示需要進行多重身份驗證(MFA)。 挑戰已經寄出,使用者需要提供程式碼。

Extends

MfaState<MfaVerificationRequiredStateParameters>

建構函式

MfaVerificationRequiredState(MfaVerificationRequiredStateParameters)

建立一個新的 AuthFlowActionRequiredStateBase 實例。

屬性

stateType

州的類型。

方法

getChannel()

會收到挑戰的發送管道。

getCodeLength()

取得使用者需要提供的程式碼長度。

getSentTo()

會收到目標標籤,標示挑戰被送往哪裡。

submitChallenge(string)

提交多重認證(例如 OTP 代碼)以完成驗證。

繼承的方法

requestChallenge(string)

請求針對特定認證方法進行多重驗證挑戰。

建構函式詳細資料

MfaVerificationRequiredState(MfaVerificationRequiredStateParameters)

建立一個新的 AuthFlowActionRequiredStateBase 實例。

new MfaVerificationRequiredState(stateParameters: MfaVerificationRequiredStateParameters)

參數

stateParameters

MfaVerificationRequiredStateParameters

認證狀態的參數。

屬性詳細資料

stateType

州的類型。

stateType: string

屬性值

string

方法詳細資料

getChannel()

會收到挑戰的發送管道。

function getChannel(): string

傳回

string

挑戰頻道(例如「電子郵件」)。

getCodeLength()

取得使用者需要提供的程式碼長度。

function getCodeLength(): number

傳回

number

預期的程式碼長度。

getSentTo()

會收到目標標籤,標示挑戰被送往哪裡。

function getSentTo(): string

傳回

string

挑戰目標標籤(例如,隱藏電子郵件地址)。

submitChallenge(string)

提交多重認證(例如 OTP 代碼)以完成驗證。

function submitChallenge(challenge: string): Promise<MfaSubmitChallengeResult>

參數

challenge

string

使用者輸入的挑戰代碼(例如,OTP代碼)。

傳回

承諾這個答案會變成 MfaSubmitChallengeResult。

繼承的方法的詳細資料

requestChallenge(string)

請求針對特定認證方法進行多重驗證挑戰。

function requestChallenge(authMethodId: string): Promise<MfaRequestChallengeResult>

參數

authMethodId

string

挑戰時要用的認證方法ID。

傳回

承諾這個問題會解析成 MfaRequestChallengeResult。

繼承自 MfaState.requestChallenge