Xsolla-logo

ユーザーの二要素認証設定を更新

post/users/me/mfa

Updates user’s two-factor authentication settings. The user must confirm the changes by entering a one-time code.

The workflow of using this call:

  1. The user enables or disables two-factor authentication.
  2. The application sends the request to the Xsolla Login server.
  3. The Xsolla Login server sends the one-time confirmation code to the user and returns the URL of the two-factor authentication page.
  4. The application redirects the user to the URL.
  5. The user enters the one-time code.
  6. New two-factor authentication settings are applied.

You must enable two-factor authentication for the Login project. Contact your Customer Success Manager to enable it.

SecurityBearer
Request
query Parameters
login_url
string

アカウント確認、認証成功、二要素認証設定、またはパスワードリセット確認後にユーザーをリダイレクトするためのURL。パブリッシャーアカウントURLブロックに指定されているコールバックURLと同一である必要があります。これを見つけるには、ログイン > あなたのログインプロジェクトに移動して、ナビゲーションページの上部ブロックにある Callback URLs セクションを選択します。複数のコールバックURLがある場合は、必須です。

Request Body schema: application/json
mfa_type
required
string

Type of the second factor. Can be: email or sms. You must enable the specified type for the Login project. Contact your Customer Success Manager to set it up.

Enum: "email" "sms"
enabled
boolean
Default: false

二要素認証設定の状態。有効にするにはtrue値を設定し、そうでない場合はfalse値を設定します。

locale
string

リージョンは<language code>_<country code> フォーマット。

  • language code: 言語コードは ISO 639-1フォーマット;
  • country code: 国及び地域名コードはISO 3166-1 alpha-2フォーマット。
Responses
200

OK

401

未認証

422

処理不可能なエンティティー

429

リクエストの回数が多すぎます

Request samples
application/json
{
  • "enabled": true,
  • "mfa_type": "email"
}