MfaVerificationRequiredState class

MFA 확인이 필요함을 나타내는 상태입니다. 챌린지가 전송되었으며 사용자가 코드를 제공해야 합니다.

Extends

MfaState<MfaVerificationRequiredStateParameters>

생성자

MfaVerificationRequiredState(MfaVerificationRequiredStateParameters)

AuthFlowActionRequiredStateBase의 새 인스턴스를 만듭니다.

속성

stateType

상태의 형식입니다.

메서드

getChannel()

챌린지가 전송된 채널을 가져옵니다.

getCodeLength()

사용자가 제공해야 하는 코드의 길이를 가져옵니다.

getSentTo()

챌린지가 전송된 위치를 나타내는 대상 레이블을 가져옵니다.

submitChallenge(string)

MFA 챌린지(예: OTP 코드)를 제출하여 인증을 완료합니다.

상속된 메서드

requestChallenge(string)

특정 인증 방법에 대한 MFA 챌린지를 요청합니다.

생성자 세부 정보

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)

MFA 챌린지(예: OTP 코드)를 제출하여 인증을 완료합니다.

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

매개 변수

challenge

string

사용자가 입력한 챌린지 코드(예: OTP 코드)입니다.

반품

MfaSubmitChallengeResult로 확인되는 약속입니다.

상속된 메서드 세부 정보

requestChallenge(string)

특정 인증 방법에 대한 MFA 챌린지를 요청합니다.

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

매개 변수

authMethodId

string

챌린지에 사용할 인증 방법 ID입니다.

반품

MfaRequestChallengeResult로 확인되는 약속입니다.

상속된 개체 MfaState.requestChallenge