> ## 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` の場合、ユーザーがプロバイダーで認証すると、アドレスの `location.hash` にアクセストークンと ID トークンを含めた状態で、アプリケーションの `callback URL` にリダイレクトされます。これはシングルページアプリやネイティブモバイル 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プロバイダーへリダイレクト |
