メインコンテンツへスキップ
OrganizationSelection クラスは、organization-selection 画面の機能を実装します。この画面では、ユーザーは続行先の組織を選択できます。

コンストラクター

OrganizationSelection 画面マネージャーのインスタンスを作成します。
Example
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';
const organizationSelectionManager = new OrganizationSelection();
await organizationSelectionManager.continueWithOrganizationName({
  organizationName: 'testOrganizationName',
});

プロパティ

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

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';
const organizationSelectionManager = new OrganizationSelection();
organizationSelectionManager.changeLanguage({
  language: 'fr',
});
メソッド パラメーター
continueWithOrganizationName
Promise<void>
このメソッドは、選択した組織名で処理を続行します。
Example
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';
const organizationSelectionManager = new OrganizationSelection();
await organizationSelectionManager.continueWithOrganizationName({
  organizationName: 'testOrganizationName',
});
メソッド パラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーがない場合は空の配列を返します。