> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ワンタイムパスワード（OTP）で多要素認証を確認する

> ワンタイムパスワード（OTP）を使用して多要素認証（MFA）を確認し、トークンリクエストを完了します。

## エンドポイント

`POST /oauth/token`

ワンタイムパスワード (OTP) を使用して多要素認証 (MFA) を検証します。OTP で MFA を検証するには、まずユーザーに OTP コードを取得するよう促し、次に `/oauth/token` エンドポイントにリクエストを送信します。リクエストには、OTP コード、受け取った mfa\_token (mfa\_required エラーで取得したもの) 、および `http://auth0.com/oauth/grant-type/mfa-otp` に設定した grant\_type を含める必要があります。レスポンスは、password または `http://auth0.com/oauth/grant-type/password-realm` の grant type に対するレスポンスと同じです。詳しくは、[OTP 認証器を関連付ける](/docs/mfa/guides/mfa-api/otp) を参照してください。

### 詳細はこちら

* [OTP 認証器を関連付ける](https://auth0.com/docs/mfa/guides/mfa-api/otp)

## ヘッダー

**DPoP** `string`

リクエスト用の DPoP 証明です。これは任意で、アプリケーションで Demonstrating Proof-of-Possession を使用している場合にのみ必要です。

## Body パラメーター

リクエスト本文は `application/x-www-form-urlencoded` 形式です。

**grant\_type** `string` *required*

使用するフローを指定します。OTP MFA の場合は `http://auth0.com/oauth/grant-type/mfa-otp` を使用します。

**client\_id** `string`

アプリケーションの Client ID。

**client\_secret** `string`

アプリケーションの Client Secret。

**mfa\_token** `string` *required*

`mfa_required` エラーで受け取った `mfa_token`。

**otp** `string` *required*

ユーザーが提供した OTP コード。

**client\_assertion** `string`

アプリケーションの認証情報で署名したアサーションを含む JWT。

**client\_assertion\_type** `string`

値は `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` です。

## レスポンススキーマ

\{}

application/json

**access\_token** `string`

認証済みセッションのアクセストークンです。

**token\_type** `string`

発行されたトークンの種類です。

**expires\_in** `integer`

アクセストークンの有効期間 (秒) です。

## レスポンスメッセージ

| Status | Description |
| - | - |
| 200 | OTPの検証に成功しました。 |
| 400 | パラメーター不足や無効なOTPなど、無効なリクエスト。 |
