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

> Auth0 Deploy CLI をテナントで認証するさまざまな方法について説明します。

# テナントで認証する

Auth0 Deploy CLI をテナントで認証する方法は、3 つサポートされています。

<div id="client-credentials">
  ## クライアント資格情報
</div>

[クライアント資格情報](/docs/ja-jp/get-started/authentication-and-authorization-flow/client-credentials-flow)認証では、<Tooltip tip="Client ID: Auth0 から登録済みリソースに付与される識別子。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=client+ID">クライアント ID</Tooltip> と <Tooltip tip="Client secret: Auth0 から登録済みリソースに付与されるシークレット値。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=client+secret">クライアントシークレット</Tooltip> の組み合わせをアプリケーションに直接指定する必要があります。この方法はシンプルで、ツールを最短でセットアップできます。

クライアント資格情報認証を設定するには、[設定ファイル](/docs/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)で次のフィールドを指定します。

| Field                 | Value                        |
| --------------------- | ---------------------------- |
| `AUTH0_CLIENT_ID`     | Auth0 アプリケーションのクライアント ID。    |
| `AUTH0_CLIENT_SECRET` | Auth0 アプリケーションのクライアントシークレット。 |

<div id="private-key-jwt">
  ## 秘密鍵 JWT
</div>

[秘密鍵 JWT](/docs/ja-jp/get-started/applications/configure-private-key-jwt) 認証を使用するには、アプリケーション用の秘密鍵とリモートテナント用の公開鍵を設定する必要があります。Auth0 に認証情報をリモートで保存したくない場合に適したオプションです。

秘密鍵 <Tooltip tip="JSON Web Token（JWT）: 2 者間でクレームを安全にやり取りするために使用される標準的な ID トークン形式（多くの場合、アクセストークン形式としても使用されます）。" cta="用語集を表示" href="/docs/ja-jp/glossary?term=JWT">JWT</Tooltip> 認証を設定するには、[設定ファイル](/docs/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli)で次のフィールドを設定します。

| Field                            | Value                    |
| -------------------------------- | ------------------------ |
| `AUTH0_CLIENT_SIGNING_KEY_PATH`  | JWT 署名キー証明書への相対パス        |
| `AUTH0_CLIENT_SIGNING_ALGORITHM` | 任意。証明書に使用する JWT 署名アルゴリズム |

<div id="access-token">
  ## Access token
</div>

[Access token](/docs/ja-jp/secure/tokens/access-tokens/management-api-access-tokens/get-management-api-access-tokens-for-production)認証では、Auth0 の <Tooltip tip="Management API: お客様が管理タスクを実行できるようにする製品。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=Management+API">Management API</Tooltip> <Tooltip tip="Management API: お客様が管理タスクを実行できるようにする製品。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=access+token">access token</Tooltip> をアプリケーションに直接渡す必要があります。この方法では開発者側の負担は増えますが、必要に応じて柔軟できめ細かなワークフローを実現できます。

access token 認証を設定するには、Management API 用の Auth0 access token を `AUTH0_ACCESS_TOKEN` [environment variable](/docs/ja-jp/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli) として渡します。
