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

# リソース所有者パスワードグラント

> 資格情報でユーザーを認証し、アクセストークンと ID トークンを返す非推奨のエンドポイント。

## エンドポイント

`POST /oauth/ro`

ユーザーの認証情報を受け取ると、このエンドポイントはプロバイダーに対してユーザーを認証し、アクセストークンとIDトークンを含む JSON オブジェクトを返します。

> [!NOTE]
>
> このエンドポイントはレガシー認証パイプラインの一部であり、現在は [Password Grant](#resource-owner-password) に置き換えられています。最新の認証パイプラインについて詳しくは、[Introducing OIDC Conformant Authentication](/docs/api-auth/intro) を参照してください。

### 注記

* このエンドポイントは、データベース接続、パスワードレス接続、Active Directory/LDAP、Windows Azure AD、および ADFS でのみ使用できます。
* `profile` スコープは、エンドユーザーのデフォルトのプロフィールクレーム (`name`、`family_name`、`given_name` など) へのアクセスを要求します。
* `email` スコープは、`email` および `email_verified` クレームへのアクセスを要求します。

### 詳細はこちら

* [高信頼アプリケーションから API を呼び出す](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow)

## リクエスト本文のパラメーター

**client\_id** `string` *required*

**connection** `string` *required*

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

指定可能な値: `password`

**username** `string` *required*

**password** `string` *required*

**scope** `string`

**id\_token** `string`

**device** `string`

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

| ステータス | 説明 |
| - | - |
| 200 | 認証成功 |
| 400 | 不正なリクエスト |
| 401 | 未認証 |
| 429 | リクエストが多すぎます |
| 403 | アクセス禁止 |
| default | 予期しないエラー |
