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

# Database/AD/LDAP（パッシブ）

> データベース、AD、または LDAP 接続を使用して、ブラウザーベースのパッシブ認証を開始します。

<div id="endpoint">
  ## エンドポイント
</div>

`GET /authorize`

Auth0 のユーザーストアまたは独自のデータベースを使用して、username とパスワードの認証情報を保存および管理します。独自のユーザーデータベースがある場合は、Auth0 でユーザーを認証するための IDプロバイダーとして利用できます。ブラウザーベースの (パッシブ) 認証で `/authorize` エンドポイントに `GET` リクエストを送信すると、[Auth0 Login Page](http://manage.auth0.com/login) への `302` リダイレクトが返されます。このページには、ユーザーがメールアドレスとパスワードでログインできる Login Widget が表示されます。

<Note>
  パッシブ認証はブラウザー経由で行われ、ユーザーが認証情報を入力する [Auth0 Login Page](http://manage.auth0.com/login) から開始されます。Active Authentication のようなカスタムコードやバックエンド処理は必要ありません。
</Note>

<div id="remarks">
  ### 注記
</div>

* `response_type=token` の場合、ユーザーの認証後、アクセストークンとIDトークンがアドレスの `location.hash` に含まれた状態で、アプリケーションの `callback URL` にリダイレクトされます。これはシングルページアプリや Native Mobile SDK で使用されます。
* パッシブ認証とアクティブ認証の主な違いは、前者がブラウザー上で [Auth0 Login Page](http://manage.auth0.com/login) を通じて行われるのに対し、後者はどこからでも呼び出せる (スクリプト、サーバー間通信など) 点です。
* サンプルの auth0.js スクリプトでは、ライブラリのバージョン 8 を使用しています。auth0.js バージョン 7 を使用している場合は、この[リファレンスガイド](https://auth0.com/docs/libraries/auth0js/v7)を参照してください。

<div id="learn-more">
  ### 詳細情報
</div>

* [データベース ID プロバイダー](https://auth0.com/docs/authenticate/database-connections)
* [ユーザー名/パスワード認証のレート制限](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy)
* [Active Directory/LDAP Connector](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/active-directory-ldap/ad-ldap-connector)
* [state パラメーター](https://auth0.com/docs/secure/attack-protection/state-parameters)
* [Auth0.js /authorize メソッドリファレンス](https://auth0.com/docs/libraries/auth0js#webauth-authorize)

<div id="query-parameters">
  ## クエリーパラメーター
</div>

<ParamField query="response_type" type="string" required>
  トークンの種類を指定します。サーバーサイドのフローには `code`、アプリケーション側のフローには `token` を使用します。

  指定可能な値: `code`, `token`
</ParamField>

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

<ParamField query="connection" type="string">
  アプリケーションに設定された接続の名前です。null の場合は、[Auth0 Login Page](http://manage.auth0.com/login) にリダイレクトされ、最初のデータベース接続を使用する Login Widget が表示されます。
</ParamField>

<ParamField query="redirect_uri" type="string" required>
  ユーザーが認可を付与した後に、Auth0 がブラウザーをリダイレクトする URL です。[Application's Settings](https://manage.auth0.com/dashboard/#/applications) で `redirect_uri` を指定します。
</ParamField>

<ParamField query="scope" type="string">
  OIDC スコープとカスタム API スコープです。例: `openid read:timesheets`。リフレッシュトークンを取得するには、`offline_access` を含めます。
</ParamField>

<ParamField query="state" type="string">
  アプリケーションが最初のリクエストに追加し、認可サーバーがアプリケーションへリダイレクトする際に含める不透明な値です。この値は、CSRF 攻撃を防ぐためにアプリケーションで使用する必要があります。
</ParamField>

<div id="response-messages">
  ## 応答メッセージ
</div>

| ステータス | 説明                   |
| ----- | -------------------- |
| 302   | ログインページにリダイレクトされます   |
| 400   | 不正なリクエスト - 無効なパラメーター |
| 500   | 内部サーバー エラー           |
