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

# サードパーティアプリケーションを有効にする

> テナントに対してサードパーティアプリケーションを有効にする方法を説明します。

テナントに対して、サードパーティのアプリケーションを有効にすることができます。2種類のアプリケーションの違いについては、「[ファーストパーティとサードパーティのアプリケーション](/docs/ja-JP/ja-jp/get-started/applications/confidential-and-public-applications/first-party-and-third-party-applications)」を参照してください。

1. Auth0で[アプリケーションの所有者をサードパーティに変更](/docs/ja-JP/ja-jp/get-started/applications/confidential-and-public-applications/update-application-ownership)します。

   デフォルトでは、Auth0に登録されたアプリケーションは、ファーストパーティアプリケーションになります。アプリケーションをサードパーティアプリケーションにしたい場合は、所有者を変更しなければなりません。
2. Auth0で[サードパーティアプリケーションに使用したい接続をドメインレベルに昇格](/docs/ja-JP/ja-jp/authenticate/identity-providers/promote-connections-to-domain-level)させます。

   サードパーティアプリケーションは、ドメインレベル接続のフラグを持つ[接続](/docs/ja-JP/ja-jp/connections)からのユーザーのみ認証できます。ドメインレベルの接続は、選択したファーストパーティアプリケーションに対して有効にした場合でも、すべてのサードパーティアプリケーションユーザーが認証に使用できます。
3. アプリケーションのログインページを更新します。[Lock](/docs/ja-JP/ja-jp/libraries/lock/v11)を[ユニバーサルログインページ](/docs/ja-JP/ja-jp/universal-login/classic)で使用する場合には、以下が必要です。

   1. Lockをバージョン11以降にアップグレードする
   2. Lockをインスタンス化する際に`__useTenantInfo: config.isThirdPartyClient`フラグを設定する
   3. プライベートクラウドのユーザーのみ：Lockをインスタンス化する際に[`configurationBaseUrl`オプション](https://auth0.com/docs/libraries/lock/v11/configuration#configurationbaseurl-string-)を`https://{config.auth0Domain}/`に設定する

<div id="access-token-current_user_-scopes">
  ## アクセストークンのcurrent\_user\_\*スコープ
</div>

ファーストパーティやサードパーティのアプリケーションがIDトークンを使って<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-JP/ja-jp/glossary?term=management-api" tip="Management API: 顧客が管理タスクを実行できるようにするための製品。" cta="用語集の表示">Management API</Tooltip>エンドポイントを呼び出すことはできません。その場合には、それぞれのエンドポイントに必要な以下の`current_user_*`スコープを使ってアクセストークンを取得します。

<table class="table">
  <thead>
    <tr>
      <th>スコープ</th>
      <th>エンドポイント</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`read:current_user`</td>
      <td>ユーザーを一覧表示または検索する</td>
    </tr>

    <tr>
      <td />

      <td>ユーザーを取得する</td>
    </tr>

    <tr>
      <td />

      <td>ユーザーMFA登録を取得する</td>
    </tr>

    <tr>
      <td>`update:current_user_metadata`</td>
      <td>ユーザーを更新する</td>
    </tr>

    <tr>
      <td />

      <td>ユーザーの多要素プロバイダーを削除する</td>
    </tr>

    <tr>
      <td>`create:current_user_device_credentials`</td>
      <td>デバイスの公開鍵を作成する</td>
    </tr>

    <tr>
      <td>`delete:current_user_device_credentials`</td>
      <td>デバイスの資格情報を削除する</td>
    </tr>

    <tr>
      <td>`update:current_user_identities`</td>
      <td>ユーザーアカウントをリンクする</td>
    </tr>

    <tr>
      <td />

      <td>ユーザーIDをリンク解除する</td>
    </tr>
  </tbody>
</table>

<div id="script-example">
  ## スクリプトの例
</div>

```html lines theme={null}
<script src="https://cdn.auth0.com/js/lock/11.x.y/lock.min.js"></script>
...
<script>
  // Decode utf8 characters properly
  var config = JSON.parse(decodeURIComponent(escape(window.atob('@@config@@'))));

  var connection = config.connection;
  var prompt = config.prompt;
  var languageDictionary;
  var language;
  if (config.dict && config.dict.signin && config.dict.signin.title) {
    languageDictionary = { title: config.dict.signin.title };
  } else if (typeof config.dict === 'string') {
    language = config.dict;
  }

  var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
    auth: {
      redirectUrl: config.callbackURL,
      responseType: config.callbackOnLocationHash ? 'token' : 'code',
      params: config.internalOptions
    },
    assetsUrl:  config.assetsUrl,
    allowedConnections: connection ? [connection] : null,
    configurationBaseUrl: 'https://' + config.auth0Domain + '/', // for PSaaS only
    rememberLastLogin: !prompt,
    language: language,
    languageDictionary: languageDictionary,
    closable: false,
    __useTenantInfo: config.isThirdPartyClient // required for all Tenants
  });

  lock.show();
</script>
```

<div id="learn-more">
  ## もっと詳しく
</div>

* [ファーストパーティーアプリケーションとサードパーティーアプリケーション](/docs/ja-JP/ja-jp/get-started/applications/confidential-and-public-applications/first-party-and-third-party-applications)
* [ユーザーの同意とサードパーティアプリケーション](/docs/ja-JP/ja-jp/get-started/applications/confidential-and-public-applications/user-consent-and-third-party-applications)
* [接続をドメインレベルに昇格する](/docs/ja-JP/ja-jp/authenticate/identity-providers/promote-connections-to-domain-level)
