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

# リソース所有者のパスワード付与

> ユーザーの資格情報が渡されると、このエンドポイントはプロバイダーでユーザーを認証し、アクセストークンとIDトークンを含むJSONオブジェクトを返します。

`POST /oauth/ro`

ユーザーの資格情報が渡されると、このエンドポイントはプロバイダーでユーザーを認証し、アクセストークンとIDトークンを含むJSONオブジェクトを返します。
note
このエンドポイントはレガシー認証パイプラインの一部で、現在は[パスワード付与](#resource-owner-password)に置き換えられています。最新の認証パイプラインについては、「[OIDC準拠の認証を導入する](/docs/ja-jp/api/authentication/api-auth/intro)」を参照してください。

### 備考

* このエンドポイントは、データベース接続、パスワードレス接続、Active Directory/LDAP、Microsoft Entra ID、ADFSにのみ利用できます。
* `profile`スコープは、`name`や`family_name`、`given_name`など、エンドユーザーのデフォルトのプロファイルクレームへのアクセスを要求します。
* `email`スコープは`email`と`email_verified`クレームへのアクセスを要求します。

### 詳しい情報

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

## Parameters

<ParamField body="client_id" type="string" />

<ParamField body="connection" type="string" />

<ParamField body="grant_type" type="string" />

<ParamField body="username" type="string" />

<ParamField body="password" type="string" />

<ParamField body="scope" type="string" />

<ParamField body="id_token" type="string" />

<ParamField body="device" type="string" />

## Response

| Status  | Description |
| ------- | ----------- |
| 200     | 正常な認証       |
| 400     | 不正なリクエスト    |
| 401     | 未認可         |
| 403     | 閲覧禁止        |
| 429     | 要求が多すぎます    |
| default | 予期しないエラー    |
