> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# データベース/AD/LDAP（アクティブ）

> note

`POST /oauth/ro`

note
このエンドポイントはレガシー認証パイプラインの一部で、現在は[パスワード付与](#resource-owner-password)に置き換えられています。最新の認証パイプラインについては、「[OIDC準拠の認証を導入する](/docs/ja-jp/api/authentication/api-auth/intro)」を参照してください。

APIベース（アクティブ）の認証には、このエンドポイントを使用します。ユーザーの資格情報が渡され、`connection`が指定されると、このエンドポイントはプロバイダーで認証し、アクセストークンとIDトークンを含むJSON応答を返します。

### 備考

*

このエンドポイントは、データベース接続、パスワードレス接続、Active Directory/LDAP、Microsoft Entra ID、ADFSにのみ利用できます。

*

パッシブ認証とアクティブ認証の主な違いは、パッシブ認証がブラウザーで[Auth0のログインページ](http://manage.auth0.com/login)を通して行われるのに対し、アクティブ認証は（スクリプト、サーバー間など）どこからでも実行できるところにあります。

*

サンプルのauth0.jsスクリプトは、バージョン8のライブラリーを使用しています。auth0.jsバージョン7を使用している場合には、こちらの[リファレンスガイド](https://auth0.com/docs/ja-jp/libraries/auth0js/v7)を参照してください。

### 詳しい情報

* [データベースIDプロバイダー](https://auth0.com/docs/ja-jp/authenticate/database-connections)
* [ユーザー/パスワード認証でのレート制限](https://auth0.com/docs/ja-jp/troubleshoot/customer-support/operational-policies/rate-limit-policy)
* [Active Directory/LDAP接続](https://auth0.com/docs/ja-jp/authenticate/identity-providers/enterprise-identity-providers/active-directory-ldap/ad-ldap-connector)

## Parameters

<ParamField body="client_id" type="string">
  アプリケーションの`client_id`です。
</ParamField>

<ParamField body="username" type="string">
  ユーザーがログインに使用するユーザー名またはメールアドレスです。
</ParamField>

<ParamField body="password" type="string">
  ユーザーがログインに使用するパスワードです。
</ParamField>

<ParamField body="connection" type="string">
  ログインに使用する接続の名前です。
</ParamField>

<ParamField body="scope" type="string">
  IDトークンも取得するには、`openid`に設定します。
</ParamField>

<ParamField body="grant_type" type="string">
  `password`または`urn:ietf:params:oauth:grant-type:jwt-bearer`に設定します。
</ParamField>

<ParamField body="device" type="string">
  `grant_type`が`urn:ietf:params:oauth:grant-type:jwt-bearer`の場合には必須です。
</ParamField>

<ParamField body="id_token" type="string">
  `grant_type`が`urn:ietf:params:oauth:grant-type:jwt-bearer`の場合には必須です。
</ParamField>

## Response

| Status | Description |
| ------ | ----------- |
| 200    | 正常な認証応答     |
| 400    | 不正なリクエスト    |
