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

# ソーシャル

> Facebook、Google、Apple などのソーシャル IDプロバイダー経由でブラウザーベースのログインを開始します。

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

`GET /authorize`

<div id="social">
  ## ソーシャル
</div>

Auth0 サービスをソーシャルIDプロバイダーに接続すると、ユーザーは Facebook、Google、Apple などのサポートされているプロバイダー経由でアプリケーションにログインできるようになります。サポートされているプロバイダーの詳細については、[Marketplace](https://marketplace.auth0.com/features/social-connections) を参照してください。

ソーシャルプロバイダーでユーザーを認証するには、`/authorize` エンドポイントに `GET` リクエストを送信します。これにより、`connection` パラメーターで指定したソーシャルプロバイダーへの `302` リダイレクトが返されます。

<Note>
  ソーシャル接続でサポートされるのは、ブラウザーベースの (パッシブな) 認証のみです。これは、ほとんどのソーシャルプロバイダーが、自社以外のアプリケーションでユーザー名とパスワードを入力することを許可していないためです。そのため、ユーザーはプロバイダーのサインインページにリダイレクトされます。
</Note>

<div id="remarks">
  ### 備考
</div>

* `response_type=token` の場合、ユーザーがプロバイダーで認証すると、アプリケーションの `callback URL` にリダイレクトされ、アドレスの `location.hash` にアクセストークンとIDトークンが渡されます。これはシングルページアプリやネイティブモバイルSDKでも使用されます。

* auth0.js のサンプルスクリプトでは、ライブラリのバージョン 8 を使用しています。auth0.js バージョン 7 を使用している場合は、この[リファレンスガイド](https://auth0.com/docs/libraries/auth0js)を参照してください。

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

* [サポートされているソーシャルIDプロバイダー](https://marketplace.auth0.com/features/social-connections)
* [カスタムソーシャル接続](https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2)
* [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">
  アプリケーションに設定されたソーシャル IDプロバイダーの名前
</ParamField>

<ParamField query="redirect_uri" type="string" required>
  認可後に Auth0 がリダイレクトする先の URL
</ParamField>

<ParamField query="state" type="string">
  CSRF 攻撃を防ぐために使用する不透明な値
</ParamField>

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

| ステータス | 説明                   |
| ----- | -------------------- |
| 302   | ソーシャルIDプロバイダーにリダイレクト |
