メインコンテンツへスキップ
mfa-push-challenge-push 画面の機能を実装するクラスです。 この画面は、MFA(多要素認証)中にユーザーがプッシュ通知を承認する必要がある場合に表示されます。
Example
const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.continue();

コンストラクター

MfaPushChallengePush
Constructor
MfaPushChallengePush画面マネージャーのインスタンスを作成します

プロパティ

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

メソッド

continue
Promise<void>
プッシュ通知チャレンジを続行します。
Example
const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.continue();
enterCodeManually
Promise<void>
検証コードを手動で入力するモードに切り替えます。
Example
const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.enterCodeManually();
getErrors
コンテキストからトランザクションのエラー配列を取得します。存在しない場合は空の配列を返します。トランザクションコンテキストから取得されるエラーオブジェクトの配列です。
pollingManager
ユーティリティ機能MFA(多要素認証)プッシュチャレンジのポーリングを開始および管理します。指定された間隔で MFA プッシュチャレンジのエンドポイントを繰り返し確認する ポーリングセッションを作成し、チャレンジが承認されるかエラーが発生するまで続行します。 承認条件が満たされると、指定された onCompleted コールバックが呼び出され、 ポーリングは自動的に停止します。返される MfaPushPollingControl を使用して、 任意のタイミングでポーリングプロセスの開始、停止、状態確認を行います。次を公開する MfaPushPollingControl インスタンスです。
  • startPolling() — ポーリングを開始または再開します。
  • stopPolling() — ポーリングを即座にキャンセルします。
  • isRunning() — 現在ポーリングがアクティブかどうかを示します。
Example
// プッシュチャレンジが承認されるまで 5 秒ごとにポーリングを開始する
const control = mfaPushChallengePush.pollingManager({
  intervalMs: 5000,
  onCompleted: () => mfaPushChallengePush.continue(),
  onError: (error) => console.error('Polling error:', error),
});

// 後で、必要であればポーリングをキャンセルする
control.stopPolling();

備考

  • HTTP 429(レート制限)レスポンスは内部で処理されます。ポーリングは、レート制限がリセットされるまで自動的に待機してから再試行します。
  • startPolling() は複数回呼び出しても安全です。すでに実行中の場合は何の効果もありません。
resendPushNotification
Promise<void>
プッシュ通知を再送信します。
Example
const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.resendPushNotification();
tryAnotherMethod
Promise<void>
別の認証方法を試します。
Example
const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.tryAnotherMethod();