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

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

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

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

`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` リダイレクトが返されます。

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

* `response_type=token` の場合、ユーザーが認証されると、ブラウザーはアクセストークンと IDトークンがアドレスの `location.hash` に付与された状態で、アプリケーションの `callback URL` にリダイレクトされます。これは一般に、シングルページアプリケーション (SPA) やネイティブモバイル SDK で使用されます。
* `connection` が指定されていない場合、ユーザーは [Auth0 Login Page](http://manage.auth0.com/login) にリダイレクトされ、そこで利用可能な最初のデータベース接続を使用して認証できます。
* このフローは、パッシブなブラウザーベースの認証を必要とするアプリケーションで使用されます。

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

* [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)

<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">
  アプリケーションに設定されたエンタープライズ接続の名前です。指定しない場合は、[Auth0 Login Page](http://manage.auth0.com/login) にリダイレクトされ、最初に利用可能なデータベース接続を使用するログインウィジェットが表示されます。
</ParamField>

<ParamField query="redirect_uri" type="string" required>
  ユーザーが認可を付与した後、Auth0 がブラウザーをリダイレクトする先の URL です。`redirect_uri` は [アプリケーションの設定](\$\{manage_url}/#/applications) で指定します。
</ParamField>

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

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

| ステータス | 説明                      |
| ----- | ----------------------- |
| 302   | 認証プロバイダーにリダイレクトされます。    |
| 400   | Bad Request - 無効なパラメーター |
| 500   | Internal Server Error   |
