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

> 署名、標準クレーム、および任意の nonce を検証してユーザーアイデンティティを確認することで、アプリケーション内の Auth0 ID tokens を検証します。

# ID Token を検証する

ユーザープロファイル属性を含む [ID token](/docs/ja-jp/secure/tokens/id-tokens) はアプリで使用され、通常はユーザーインターフェイスの表示に利用されます。Auth0 はすべての <Tooltip tip="ID Token: リソースへのアクセスではなく、クライアント自身のための認証情報です。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=ID+tokens">ID tokens</Tooltip> を [JSON web token (JWT)](/docs/ja-jp/secure/tokens/json-web-tokens) 形式で発行します。

これらの確認のいずれかに失敗した場合、そのトークンは無効と見なされ、リクエストは拒否する必要があります。

1. [JWT を検証する](/docs/ja-jp/secure/tokens/json-web-tokens/validate-json-web-tokens)。
2. 追加の標準クレームを確認します。標準的な JWT の検証を実行していれば、すでに [JWT のペイロード](/docs/ja-jp/secure/tokens/json-web-tokens/json-web-token-structure) をデコードし、その標準クレームを確認しているはずです。ID tokens で追加で検証すべきクレームには、次のものがあります。

   * **トークンの audience** (`aud`, string): トークンの audience 値は、[アプリケーションの設定](https://manage.auth0.com/#/applications) の **Client ID** フィールドで定義されているアプリケーションの client ID と一致している必要があります。
   * **Nonce** (`nonce`, string): リプレイ攻撃の防止に役立つため、トークンリクエストで nonce を渡すことを推奨します (Implicit Flow では必須です) 。トークン内の nonce 値は、リクエストで送信した元の nonce と完全に一致している必要があります。詳しくは、[リプレイ攻撃を軽減する](/docs/ja-jp/get-started/authentication-and-authorization-flow/implicit-flow-with-form-post/mitigate-replay-attacks-when-using-the-implicit-flow) を参照してください。

<div id="learn-more">
  ## 詳細情報
</div>

* [ID Token を取得する](/docs/ja-jp/secure/tokens/id-tokens/get-id-tokens)
* [ID Token の構造](/docs/ja-jp/secure/tokens/id-tokens/id-token-structure)
* [ID Token の有効期間を更新する](/docs/ja-jp/secure/tokens/id-tokens/update-id-token-lifetime)
* [Implicit Flow 使用時のリプレイ攻撃を軽減する](/docs/ja-jp/get-started/authentication-and-authorization-flow/implicit-flow-with-form-post/mitigate-replay-attacks-when-using-the-implicit-flow)
