メインコンテンツへスキップ

MFA SMSチャレンジ画面クラス

SMSチャレンジ画面クラスは、mfa-sms-challenge画面と関連付けられているメソッドを提供します。
MFA SMSチャレンジ画面クラスのインポートとインスタンス化
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge';
const mfaSmsChallenge = new MfaSmsChallenge();

// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaSmsChallenge.screen.name;

// SDK Methods return an object or array
await mfaSmsChallenge.continueMfaSmsChallenge({
  code: '123456',
  rememberBrowser: true,
});

プロパティ

MFA SMSチャレンジ画面クラスには以下のプロパティがあります。
  • branding
  • client
  • organization
  • prompt
  • screen
  • tenant
  • transaction
  • untrustedData
  • user
interface branding {
  settings: null | BrandingSettings;
  themes: null | BrandingThemes;
}

interface BrandingSettings {
  colors?: {
    pageBackground?: string | {
      angleDeg: number;
      end: string;
      start: string;
      type: string;
    };
    primary?: string;
  };
  faviconUrl?: string;
  font?: {url: string;};
  logoUrl?: string;
}

interface BrandingThemes {
  default: {
    borders: Record<string, string | number | boolean>;
    colors: Record<string, string>;
    displayName: string;
    fonts: Record<string, string | boolean | object>;
    pageBackground: Record<string, string>;
    widget: Record<string, string | number>;
  };
}

メソッド

MFA SMSチャレンジ画面クラスには以下のメソッドがあります。

continueMfaSmsChallenge( options ?)

このメソッドは入力された検証コードとrememberBrowserオプションを送信します。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge';

const mfaSmsChallenge = new MfaSmsChallenge();
await mfaSmsChallenge.continueMfaSmsChallenge({
  code: '123456',
  rememberBrowser: true,
});
パラメーター                 タイプ必須説明
code文字列必須ユーザーが入力したコードです。
rememberBrowserブール値任意ユーザーのブラウザー構成を記憶します。
[key: string]文字列 | 数値 | ブール値 | undefined任意ユーザーから収集した任意 のデータです。

getACall( options ?)

このメソッドは検証コードを音声通話検証で送信できるようにします。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge';

const mfaSmsChallenge = new MfaSmsChallenge();
await mfaSmsChallenge.getACall();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

pickSms( options ?)

このメソッドはユーザーが利用可能な別のSMS構成を選択できるようにします。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge';

const mfaSmsChallenge = new MfaSmsChallenge();
await mfaSmsChallenge.pickSms();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

resendCode( options ?)

このメソッドはSMSコードを再度送信します。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge';

const mfaSmsChallenge = new MfaSmsChallenge();
await mfaSmsChallenge.resendCode();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

tryAnotherMethod( options ?)

このメソッドは別のMFA方法を試行するアクションを送信します。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge';

const mfaSmsChallenge = new MfaSmsChallenge();
await mfaSmsChallenge.tryAnotherMethod();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

MFA SMS登録画面クラス

MFA SMS登録画面クラスは、mfa-sms-challenge画面と関連付けられているメソッドを提供します。
MFA SMS登録画面クラスのインポートとインスタンス化
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';
const mfaSmsEnrollment = new MfaSmsEnrollment();

// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaSmsEnrollment.screen.name;

// SDK Methods return an object or array
await mfaSmsEnrollment.pickCountryCode();

プロパティ

MFA SMS登録画面クラスには以下のプロパティがあります。
  • branding
  • client
  • organization
  • prompt
  • screen
  • tenant
  • transaction
  • untrustedData
  • user
interface branding {
  settings: null | BrandingSettings;
  themes: null | BrandingThemes;
}

interface BrandingSettings {
  colors?: {
    pageBackground?: string | {
      angleDeg: number;
      end: string;
      start: string;
      type: string;
    };
    primary?: string;
  };
  faviconUrl?: string;
  font?: {url: string;};
  logoUrl?: string;
}

interface BrandingThemes {
  default: {
    borders: Record<string, string | number | boolean>;
    colors: Record<string, string>;
    displayName: string;
    fonts: Record<string, string | boolean | object>;
    pageBackground: Record<string, string>;
    widget: Record<string, string | number>;
  };
}

メソッド

MFA SMS登録画面クラスには以下のメソッドがあります。

continueEnrollment( options ?)

このメソッドは提供された電話番号でSMS登録の処理を続行します。
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';

const mfaSmsEnrollment = new MfaSmsEnrollment();
await mfaSmsEnrollment.continueEnrollment({ phone: '1234567890' });
パラメーター                 タイプ必須説明
captcha文字列条件付きCAPTCHAプロバイダーが返すCAPTCHAコードまたは応答です。
phone文字列任意ユーザーが入力した電話番号です。
[key: string]文字列 | 数値 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

pickCountryCode( options ?)

このメソッドはSMS登録に国コードを選択するアクションを処理します。
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';

const mfaSmsEnrollment = new MfaSmsEnrollment();
await mfaSmsEnrollment.pickCountryCode();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

tryAnotherMethod( options ?)

このメソッドはMFAに別の方法を試行するアクションを処理します。
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';

const mfaSmsEnrollment = new MfaSmsEnrollment();
await mfaSmsEnrollment.tryAnotherMethod();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

MFA SMSリスト画面クラス

MFA SMSリスト画面クラスは、mfa-sms-list画面と関連付けられているメソッドを提供します。
MFA SMSリスト画面クラスのインポートとインスタンス化
import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list';
const mfaSmsList = new MfaSmsList();

// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaSmsList.screen.name;

// SDK Methods return an object or array
// ex. { signup: "/signup_url", reset_password: "/reset_password_url"} 
await mfaSmsList.backAction();

プロパティ

MFA SMSリスト画面クラスには以下のプロパティがあります。
  • branding
  • client
  • organization
  • prompt
  • screen
  • tenant
  • transaction
  • untrustedData
  • user
interface branding {
  settings: null | BrandingSettings;
  themes: null | BrandingThemes;
}

interface BrandingSettings {
  colors?: {
    pageBackground?: string | {
      angleDeg: number;
      end: string;
      start: string;
      type: string;
    };
    primary?: string;
  };
  faviconUrl?: string;
  font?: {url: string;};
  logoUrl?: string;
}

interface BrandingThemes {
  default: {
    borders: Record<string, string | number | boolean>;
    colors: Record<string, string>;
    displayName: string;
    fonts: Record<string, string | boolean | object>;
    pageBackground: Record<string, string>;
    widget: Record<string, string | number>;
  };
}

メソッド

MFA SMSリスト画面クラスには以下のメソッドがあります。

backAction( options ?)

このメソッドはユーザーが前の画面に戻れるようにします。
import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list';

const mfaSmsList = new MfaSmsList();
await mfaSmsList.backAction();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

selectPhoneNumber( options ?)

このメソッドは、ユーザーが登録済みの電話番号のリストから電話番号を選択できるようにします。
import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list';

const mfaSmsList = new MfaSmsList();
await mfaSmsList.selectPhoneNumber({
  index: 0 // for demonstration we are selecting the first index
});
パラメーター                 タイプ必須説明
index数値必須選択する電話番号のインデックスです。
[key: string]文字列 | 数値 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

MFA国コード画面クラス

MFA国コード画面クラスは、ユーザーがMFAの電話番号検証に国コードを選択できるようにします。
MFA国コード画面クラスのインポートとインスタンス化
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';
const mfaCountryCodesManager = new MfaCountryCodes();

// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaCountryCodesManager.screen.name;

// SDK Methods return an object or array
// ex. { signup: "/signup_url", reset_password: "/reset_password_url"} 
await mfaCountryCodesManager.selectCountryCode({
 action: 'selection-action::US1'
});

プロパティ

MFA国コード画面クラスには以下のプロパティがあります。
  • branding
  • client
  • organization
  • prompt
  • screen
  • tenant
  • transaction
  • untrustedData
  • user
interface branding {
  settings: null | BrandingSettings;
  themes: null | BrandingThemes;
}

interface BrandingSettings {
  colors?: {
    pageBackground?: string | {
      angleDeg: number;
      end: string;
      start: string;
      type: string;
    };
    primary?: string;
  };
  faviconUrl?: string;
  font?: {url: string;};
  logoUrl?: string;
}

interface BrandingThemes {
  default: {
    borders: Record<string, string | number | boolean>;
    colors: Record<string, string>;
    displayName: string;
    fonts: Record<string, string | boolean | object>;
    pageBackground: Record<string, string>;
    widget: Record<string, string | number>;
  };
}

メソッド

MFA国コード画面クラスには以下のメソッドがあります。

goBack( options ?)

このメソッドはユーザーを前の画面に戻します。
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';

const mfaCountryCodes = new MfaCountryCodes();
await mfaCountryCodes.goBack();
パラメーター                 タイプ必須説明
[key: string]文字列 | 数字 | ブール値 | undefined任意ユーザーから収集した任意のデータです。

selectCountryCode( options ?)

このメソッドはユーザーが国コードを選択できるようにします。
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes';

const mfaCountryCodes = new MfaCountryCodes();

// Get the available country codes and phone prefixes
const { screen } = mfaCountryCodes;
const { phone_prefixes } = screen.data
const {country_code, phone_prefix} = phone_prefixes[0]

await mfaCountryCodes.selectCountryCode({
  country_code: 'US',
  phone_prefix: '+1',
});
パラメーター                 タイプ必須説明
country_code文字列必須選択する国コードです。
phone_prefix文字列必須選択する電話番号の国番号です。
[key: string]文字列 | 数値 | ブール値 | undefined任意ユーザーから収集した任意のデータです。
I