メインコンテンツへスキップ
MfaWebAuthnPlatformChallenge クラスは、mfa-webauthn-platform-challenge 画面の機能を実装します。この画面は、ユーザーが Touch ID や Face ID などのプラットフォーム認証器を使用して本人確認を行う必要がある場合に表示されます。
MfaWebAuthnPlatformChallenge

コンストラクター

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

const mfaWebAuthnPlatformChallenge = new MfaWebAuthnPlatformChallenge();
await mfaWebAuthnPlatformChallenge.verify();

プロパティ

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

メソッド

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

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

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

const mfaWebAuthnPlatformChallenge = new MfaWebAuthnPlatformChallenge();
await mfaWebAuthnPlatformChallenge.tryAnotherMethod();
verify
Promise<void>
このメソッドは、WebAuthn のプラットフォーム認証器チャレンジを開始します。
Example
import MfaWebAuthnPlatformChallenge from '@auth0/auth0-acul-js/mfa-webauthn-platform-challenge';

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