メインコンテンツへスキップ
MfaWebAuthnRoamingChallenge クラスは、mfa-webauthn-roaming-challenge 画面の機能を実装します。この画面は、セキュリティキーなどのローミング認証器を使用してユーザーが本人確認を行う必要がある場合に表示されます。
MfaWebAuthnRoamingChallenge

コンストラクター

MFA WebAuthn Roaming Challenge 画面マネージャーのインスタンスを作成します:
Example
import MfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge';

const mfaWebAuthnRoamingChallenge = new MfaWebAuthnRoamingChallenge();
await mfaWebAuthnRoamingChallenge.verify();

プロパティ

ブランディングテーマや設定など、ブランディングに関する構成を提供します。
mfa-webauthn-roaming-challenge 画面用のクライアント関連の構成 (idnamelogoUrl など) を提供します。
idname など、ユーザーの組織に関する情報を提供します。
認証フローにおける現在のプロンプトに関するデータを含みます。
設定やコンテキストなど、mfa-webauthn-roaming-challenge 画面に固有の詳細を含みます。
id や関連するメタデータなど、テナントに関するデータを含みます。
アクティブな識別子やフローの状態など、mfa-webauthn-roaming-challenge 画面に固有のトランザクションデータを提供します。
MFA の WebAuthn roaming challenge 中のユーザー入力など、SDK に渡される信頼できないデータを扱います。
usernameemailroles など、現在アクティブなユーザーの詳細です。

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import MfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge';

const mfaWebAuthnRoamingChallenge = new MfaWebAuthnRoamingChallenge();
mfaWebAuthnRoamingChallenge.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は空の配列を返します。
reportWebAuthnError
Promise<void>
このメソッドは、navigator.credentials.get() の実行中に発生した WebAuthn API エラーを報告します。
Example
import MfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge';

const mfaWebAuthnRoamingChallenge = new MfaWebAuthnRoamingChallenge();
await mfaWebAuthnRoamingChallenge.reportWebAuthnError({
  error: { name: 'NotAllowedError', message: 'The operation was not allowed.' },
});
メソッドパラメーター
tryAnotherMethod
Promise<void>
このメソッドを使用すると、ユーザーは別の MFA方式 を試すことができます。
Example
import MfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge';

const mfaWebAuthnRoamingChallenge = new MfaWebAuthnRoamingChallenge();
await mfaWebAuthnRoamingChallenge.tryAnotherMethod();
verify
Promise<void>
このメソッドは、セキュリティキーを使用して WebAuthn チャレンジを開始します。
Example
import MfaWebAuthnRoamingChallenge from '@auth0/auth0-acul-js/mfa-webauthn-roaming-challenge';

const mfaWebAuthnRoamingChallenge = new MfaWebAuthnRoamingChallenge();
await mfaWebAuthnRoamingChallenge.verify();
メソッドパラメーター