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

# エンタープライズ（SAMLまたはその他）

> Auth0サービスをエンタープライズIDプロバイダーに接続して、Microsoft Azure Active DirectoryやGoogle Workspace、Okta...

`GET /authorize`

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

パッシブ認証のため`/authorize`エンドポイントに`GET`呼び出しを行います。これにより、資格情報を入力するSAMLプロバイダー（またはMicrosoft Entra IDなど`connection`で指定されたプロバイダー）への`302`リダイレクトが返されます。

### 備考

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

### 詳しい情報

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

## Parameters

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

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

<ParamField query="connection" type="string">
  アプリケーションに構成されているエンタープライズ接続の名前です。指定されない場合には、最も優先されるデータベース接続を使用して[Auth0のログインページ](http://manage.auth0.com/login)にリダイレクトし、ログインウィジェットを表示します。
</ParamField>

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

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

## Response

| Status | Description         |
| ------ | ------------------- |
| 302    | 認証プロバイダーにリダイレクトします  |
| 400    | 不正な要求 - 無効なパラメーターです |
| 500    | 内部サーバーエラーです         |
