> ## 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.

# データベース/AD/LDAP（パッシブ）

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

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

`GET /authorize`

Auth0 のユーザーストアまたは独自のデータベースを使って、ユーザー名とパスワードの認証情報を保存・管理できます。独自のユーザーデータベースがある場合は、Auth0 でユーザーを認証するためのアイデンティティプロバイダーとして利用できます。ブラウザベースのパッシブ認証のために `/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` の場合、ユーザーの認証後、アドレスの `location.hash` に Access Token と ID Token を含めた状態で、アプリケーションの `callback URL` にリダイレクトされます。これは Single-Page Apps や Native Mobile SDKs で使用されます。
* パッシブ認証とアクティブ認証の主な違いは、前者はブラウザー上で [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>

* [データベースのアイデンティティプロバイダー](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 です。`redirect_uri` は [アプリケーションの設定](https://manage.auth0.com/dashboard/#/applications) で指定してください。
</ParamField>

<ParamField query="scope" type="string">
  OIDC スコープとカスタム API スコープです。例: `openid read:timesheets`。Refresh Token を取得するには `offline_access` を含めてください。
</ParamField>

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

<div id="response-messages">
  ## レスポンスメッセージ
</div>

| Status | Description            |
| ------ | ---------------------- |
| 302    | ログインページへリダイレクト         |
| 400    | 不正なリクエスト - パラメーターが無効です |
| 500    | 内部サーバーエラー              |
