> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# リンク

> note

`GET /authorize`

note
このエンドポイントはアカウントリンクで**廃止**されています。この代わりに、[POST /api/v2/users/{id}/identities](/docs/ja-jp/api/authentication/api/management/v2#!/Users/post_identities)を使用してください。詳細については、「[移行のお知らせ](/docs/ja-jp/api/authentication/migrations/past-migrations#account-linking-removal)」を参照してください。

ユーザーが第二の認証方法（たとえば、ユーザー/パスワードを用いたデータベース接続に加えて、Facebookでの認証など）をリンクさせたい場合には、このエンドポイントを呼び出します。

このエンドポイントはログインフローをトリガーして、既存のアカウントと新しいアカウントをリンクさせます。ユーザーが追加を希望する`connection`への302リダイレクトが返されます。ユーザーは、ログイン成功で返されたアクセストークンによって識別されます。

### 備考

* `redirect_uri`の値は、[アプリケーション設定](https://manage.auth0.com/dashboard)で有効なCallback URLとして指定される必要があります。

### 詳しい情報

* [ユーザーアカウントをリンクする](https://auth0.com/docs/ja-jp/manage-users/user-accounts/user-account-linking/link-user-accounts)
* [ユーザーシナリオによって開始されたユーザーアカウントのリンク処理](http://auth0.com/docs/ja-jp/users/references/link-accounts-user-initiated-scenario)
* [ユーザーアカウントのリンクに関するサーバー側のシナリオ](https://auth0.com/docs/ja-jp/manage-users/user-accounts/user-account-linking/suggested-account-linking-server-side-implementation)

## 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">
  アプリケーションに構成されている接続の名前です。nullの場合には、最初のデータベース接続を使用して[Auth0のログインページ](https://auth0.com/#/login_page)にリダイレクトし、ログインウィジェットを表示します。
</ParamField>

<ParamField query="redirect_uri" type="string" required>
  ユーザーを認可した後、Auth0がブラウザーをリダイレクトするURLです。
</ParamField>

<ParamField query="access_token" type="string" required>
  ログインしたユーザーのアクセストークンです。
</ParamField>

## Response

| Status | Description         |
| ------ | ------------------- |
| 302    | アカウントのリンクで接続にリダイレクト |
