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

# エンタープライズ（SAML など）

> Azure AD、ADFS、SAML などのエンタープライズ ID プロバイダーを使用して、ブラウザベースのログインを開始します。

## エンドポイント

`GET /authorize`

Auth0 サービスをエンタープライズ ID プロバイダーに接続することで、Microsoft Azure Active Directory、Google Workspace、Okta Workforce、その他の対応プロバイダー経由で、ユーザーがアプリケーションにログインできるようになります。対応プロバイダーの詳細については、[Auth0 Marketplace](https://marketplace.auth0.com/features/enterprise-connections) を参照してください。

パッシブ認証を行うには、`/authorize` エンドポイントに `GET` リクエストを送信します。すると、認証情報を入力するために、SAML プロバイダー (または `connection` で指定された Windows Azure AD など) へ `302` リダイレクトが返されます。

### 注記

* `response_type=token` の場合、ユーザーの認証後、ブラウザーは Access Token と ID Token をアドレスの `location.hash` に含む形で、アプリケーションの `callback URL` にリダイレクトされます。これは、Single-Page Apps (SPAs) や Native Mobile SDKs で一般的に使用されます。
* `connection` が指定されていない場合、ユーザーは [Auth0 Login Page](http://manage.auth0.com/login) にリダイレクトされ、そこで最初に利用可能なデータベース接続を使用して認証できます。
* このフローは、ブラウザーベースのパッシブ認証を必要とするアプリケーションで使用されます。

### 詳細情報

* [SAML](https://auth0.com/docs/authenticate/protocols/saml/saml-configuration)
* [Microsoft Azure Active Directory のクライアント ID とクライアント シークレットを取得する](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azure-active-directory/v2)
* [state パラメーター](https://auth0.com/docs/secure/attack-protection/state-parameters)
* [Auth0.js /authorize メソッド リファレンス](https://auth0.com/docs/libraries/auth0js#webauth-authorize)

## クエリパラメーター

**response\_type** `string` *required*

トークンの種類を指定します。サーバーサイドのフローでは `code` を、クライアントサイドのフローでは `token` を使用します。

使用できる値: `code`, `token`

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

アプリケーションの `client_id` です。

**connection** `string`

アプリケーション用に設定されたエンタープライズ接続の名前です。指定しない場合は、[Auth0 Login Page](http://manage.auth0.com/login) にリダイレクトされ、最初に利用可能なデータベース接続を使用した Login Widget が表示されます。

**redirect\_uri** `string` *required*

ユーザーが認可を与えた後に、Auth0 がブラウザーをリダイレクトする先の URL です。`redirect_uri` は [Application's Settings](\$\{manage_url}/#/applications) で指定してください。

**state** `string`

\[推奨] アプリケーションが初回リクエストに追加し、認可サーバーがアプリケーションへリダイレクトする際に含める不透明な値です。この値は、CSRF 攻撃を防ぐためにアプリケーションで使用する必要があります。

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

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