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

# OAuth2

> OAuth2に準拠した任意の認可サーバーと連携するカスタムソーシャル接続を構築します。

カスタムOAuth2接続を使用すると、組み込みの統合タイプとして提供されていない任意のOAuth2準拠サービスとの統合を作成できます。

## 概要

特定のIDプロバイダーやサービスが標準で用意されていない場合は、Auth0でカスタムソーシャル接続を作成できます。これは、独自システムや地域限定のサービス、特殊なOAuth2プロバイダーと統合する場合に特に便利です。

詳細やAuth0でのカスタムOAuth2接続の構成方法については、[アプリを汎用OAuth2認可サーバーに接続する](/docs/ja-jp/authenticate/identity-providers/social-identity-providers/oauth2)のドキュメントを参照してください。

## Connected Accounts for Token Vault を構成する

接続を作成したら、**用途**セクションで **Connected Accounts for Token Vault** をオンにします。これにより、接続で外部 API 用のアクセストークンを取得し、安全に保存できるようになります。詳細については、「[Connected Accounts for Token Vault](/docs/ja-jp/secure/call-apis-on-users-behalf/token-vault/connected-accounts-for-token-vault)」をお読みください。

アプリケーションで [Organizations](/docs/ja-jp/manage-users/organizations) を使用している場合は、Connected Accounts フローを開始する前に、対象の Organization でユーザーを認証してください。その場合でも、Token Vault は連携済みアカウントをユーザーの Auth0 プロファイルに保存します。そのため、Organization の各メンバーがそれぞれ自分の外部アカウントを認可することになります。

## Next steps

* To learn how to configure applications to access Token Vault, read [Configure Token Vault](/docs/secure/call-apis-on-users-behalf/token-vault/configure-token-vault).
* If your application uses [Organizations](/docs/manage-users/organizations), authenticate the user with the target organization before initiating the Connected Accounts flow. Connected accounts remain linked to the individual user profile.
* To learn how to get an access token to make a tool call, complete the [Call third-party APIs on user's behalf Quickstart](/ai/docs/get-started/call-third-party-apis-on-users-behalf).
