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

> リソースサーバー向けに Rich Authorization Requests (RAR) を設定する方法を学びます。

# Rich Authorization Requests (RAR) を設定する

[Rich Authorization Requests (RAR)](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-rar) を使用すると、クライアントは [プッシュ型認可リクエスト (PAR) を使用した認可コードフロー](/docs/ja-jp/get-started/authentication-and-authorization-flow/authorization-code-flow/authorization-code-flow-with-par) および [クライアント主導のバックチャネル認証フロー](/docs/ja-jp/get-started/authentication-and-authorization-flow/client-initiated-backchannel-authentication-flow) で、エンドユーザーなどの <Tooltip tip="Resource Owner: Entity (such as a user or application) capable of granting access to a protected resource." cta="View Glossary" href="/docs/ja-jp/glossary?term=resource+owners">リソース所有者</Tooltip> から <Tooltip tip="Fine-grained Authorization (FGA): Auth0 product allowing individual users access to specific objects or resources." cta="View Glossary" href="/docs/ja-jp/glossary?term=fine-grained+authorization">きめ細かな認可</Tooltip> データをリクエストして取得できます。

Rich Authorization Requests では `authorization_details` パラメータを使用します。このパラメータは JSON のオブジェクト配列を受け取り、リクエストしている認可に関する詳細情報 (たとえば、クライアントがユーザーに代わってアクセスしたい特定のリソースやアクションなど) を含めることができます。

リクエストされた `authorization_details` は、次のいずれかの方法でユーザーにレンダリングできます。

* ブラウザーで、[カスタマイズされた同意プロンプト](#set-customized-consent-prompt) を使用する
* モバイルアプリケーションで、[Auth0 Guardian SDK または Auth0 Guardian app](/docs/ja-jp/secure/multi-factor-authentication/auth0-guardian) のプッシュ通知を使用する

<Tooltip tip="Resource Server: Server hosting protected resources. Resource servers accept and respond to protected resource requests." cta="View Glossary" href="/docs/ja-jp/glossary?term=resource+server">リソースサーバー</Tooltip> に対して Rich Authorization Requests を設定するには、次の作業が必要です。

1. リソースサーバーの [`authorization_details` タイプを登録](#register-authorization_details-types) する。
2. アプリがそれらのタイプをリクエストできるように、[API Access ポリシーを設定](#configure-the-api-access-policies) する。
3. `authorization_details` をレンダリングするために、[カスタマイズされた同意プロンプトを設定](#set-customized-consent-prompt) する。
4. [任意: リソースサーバーの同意ポリシーを設定](#optional-configure-consent-policy-for-the-resource-server) する。

<div id="register-authorization_details-types">
  ## `authorization_details` タイプを登録する
</div>

JSON配列内の各オブジェクトには、オブジェクトの構造を示す `type` フィールドが必要です。`authorization_details` 配列には、同じ `type` のエントリを複数含めることができます。

<div id="auth0-guardian-app">
  ### Auth0 Guardian app
</div>

Auth0 Guardian app を使用している場合、`authorization_details` パラメータの値には、配列内に 1 つのオブジェクトのみを含める必要があり、そのオブジェクトは次の Auth0 スキーマに準拠している必要があります。

| Field         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Example                                                                                                                           |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `type`        | 認可リクエストのタイプを指定します。<br /><ul><li>`urn:auth0:schemas:authorization-details`: リクエストで Auth0 スキーマを使用することを示す Auth0 URN です。</li><li>`v1`: スキーマのバージョンです。</li><li>`user-profile`: このリクエストがユーザープロファイル情報を対象としていることを示す、顧客指定の値です。</li></ul>                                                                                                                                                                                                                                                                                                        | `urn:auth0:schemas:authorization-details:v1:user-profile`                                                                         |
| `instruction` | リクエストの承認を求める、ユーザー向けの人が読んで理解しやすいメッセージです。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | `Please approve the request.`                                                                                                     |
| `properties`  | 要求されている特定のユーザー属性またはクレームを含む JSON オブジェクトです。各キー (例: `email`、`full_name`) は、ユーザープロファイルの特定のフィールドを表します。<br /><ul><li>`display`: そのプロパティを同意ダイアログでユーザーに表示するかどうかを決定するブール値です。`true` の場合は表示され、`false` の場合はユーザーには表示されない内部専用のプロパティになります。</li><li>`name`: プロパティの人が読んで理解しやすい名前です (例: "Email Address") 。</li><li>`display_order`: 同意ダイアログでプロパティを表示する順序を指定する整数です。</li><li>`description`: プロパティの目的についての省略可能な短い説明です。</li><li>`value`: プロパティの実際のデータ値です (例: "[user@example.com](mailto:user@example.com)"、"John Doe") 。データ型は文字列、整数、ブール値などさまざまです。</li></ul> | `"properties": { "stringPropertyForDisplay": { "display": true, "name": "A String:", "display_order": "1", "value": "Value 1"} }` |

以下は、Auth0 スキーマを使用した `authorization_details` タイプの例です。

```json lines theme={null}
{
    "type": "urn:auth0:schemas:authorization-details:v1:user-profile",
    "instruction": "An instruction to the user",
    "properties": {
        "stringPropertyForDisplay": {
            "display": true,
            "name": "A String:",
            "display_order": 1,
            "value": "Value 1"
        },
        "numericPropertyForDisplay": {
            "display": true,
            "name": "A Number:",
            "display_order": 2,
            "description": "An optional description",
            "value": 100.00
        },
        "booleanPropertyForDisplay": {
            "display": true,
            "name": "A Boolean:",
            "display_order": 3,
            "value": true
        },
        "hiddenProperty": {
            "display": false,
            "value": "This value should not be displayed"
        }
    }
}
```

<div id="other-notification-channels">
  ### その他の通知チャネル
</div>

Auth0 Guardian app を使用していない場合、`authorization_details` の type で Auth0 スキーマ を使用する必要はありません。`authorization_details` をカスタマイズされた同意プロンプト、または Auth0 Guardian SDK を使用する独自のモバイルアプリに表示する場合は、次の要件が適用されます。

* 最大 5Kb
* 有効な JSON であること
* オブジェクトの配列であること
* 配列内のエントリ数は最大 5
* すべてのオブジェクトに `type` プロパティが必要 (API に事前登録されているもの)
* オブジェクトごとのプロパティ数は最大 10
* プロパティ名の最大文字数は 255
* プロパティ値の最大文字数は 255
* ネストされたオブジェクトは最大 5 階層
* プロパティ名に使用できる文字は次のとおりです: `a-zA-Z0-9_.-`

以下は、Auth0 スキーマ を使用しない `money_transfer` type の `authorization_details` の例です。これには次のオブジェクト フィールドが含まれます。

* `instructedAmount`: 送金される USD 建ての金額。
* `sourceAccount`: 資金の送金元となる銀行口座。
* `destinationAccount`: 資金の送金先となる銀行口座。
* `beneficiary`: 送金の受取人。
* `subject`: 送金の件名。

```json lines theme={null}
{
  "type": "money_transfer", 
  "instructedAmount": {"amount": 2500, "currency": "USD"},   
  "sourceAccount": "xxxxxxxxxxx1234", 
  "destinationAccount": "xxxxxxxxxxx9876", 
  "beneficiary": "Hanna Herwitz", 
  "subject": "A Lannister Always Pays His Debts"
}
```

`authorization_details` type は、許可するスコープを登録するのと同様に、リソースサーバーに登録する必要があります。`authorization_details` type は、[Auth0 Dashboard](https://manage.auth0.com/) または [Management API](https://auth0.com/docs/api/management/v2) で登録できます。

<Tabs>
  <Tab title="Auth0 Dashboard">
    Auth0 Dashboard で `authorization_details` を追加するには、次の手順を行います。

    1. [Auth0 Dashboard > Applications > APIs](https://manage.auth0.com/#/apis) に移動します。
    2. **Permissions** タブを選択します。
    3. **Add an Authorization Details type** で、リソースサーバーに複数の `authorization_details` type を追加できます。`authorization_details` type を入力します。
    4. **+Add** オプションを選択します。

    リソースサーバーの `authorization_details` type は、**List of Authorization Details Types** で確認できます。

    <Frame>
      <img src="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/6qRpmbZiqaU8pSFDuWzUAy/951c827a307791de8df9cecd8f817351/Screenshot_2025-04-07_at_3.45.36_PM.png?fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=4bddfed8f9fc599e13ee0a1eb3577c83" alt="" width="2058" height="536" data-path="docs/images/cdy7uua7fh8z/6qRpmbZiqaU8pSFDuWzUAy/951c827a307791de8df9cecd8f817351/Screenshot_2025-04-07_at_3.45.36_PM.png" />
    </Frame>
  </Tab>

  <Tab title="Management API">
    既存のリソースサーバーに `authorization_details` type を登録するには、[Update a resource server](https://auth0.com/docs/api/management/v2/resource-servers/patch-resource-servers-by-id) エンドポイントに `PATCH` リクエストを送信します。

    次のコードサンプルは、リソースサーバーの `authorization_details` に `payment_initiation` type と `money_transfer` type を追加します。

    ```bash lines theme={null}
    curl --location --request PATCH 'https://$tenant/api/v2/resource-servers/$resource-server-id' \
      --header 'Authorization: Bearer $management_access_token' \
      --header 'Content-Type: application/json' \
      --data-raw '{
      "authorization_details": [{"type": "payment_initiation"}, {"type": "money_transfer"}]
      }'
    ```

    登録済みの `authorization_details` type を持つ新しいリソースサーバーを作成するには、`/resource-servers` エンドポイントに `POST` リクエストを送信します。

    次の `POST` リクエストは、`authorization_details` type `payment_initiation` を持つ新しいリソースサーバーを作成します。

    ```bash lines theme={null}
    curl --location --request POST 'https://$tenant/api/v2/resource-servers' \
      --header 'Authorization: Bearer $management_access_token' \
      --header 'Content-Type: application/json' \
      --data-raw '{
      "name": "Payments API",
      "identifier": "https://payments.api/",
      "authorization_details": [{"type": "payment_initiation"}]
      }'
    ```
  </Tab>
</Tabs>

<div id="configure-the-api-access-policies">
  ## API Accessポリシーを設定する
</div>

[API Access Policies for Applications](/docs/ja-jp/get-started/apis/api-access-policies-for-applications) では、どのアプリケーションが API にアクセスできるか、また、どのスコープまたは `authorization_details` タイプへのアクセスが許可されるかを制御できます。

Management API を使用すると、API の現在のポリシーを確認できます。[リソースサーバーを取得する](https://auth0.com/docs/api/management/v2/resource-servers/get-resource-servers-by-id)エンドポイントに `GET` リクエストを送り、レスポンスの `subject_type_authorization` プロパティを確認してください。

```bash lines theme={null}
curl --location --request GET 'https://$tenant/api/v2/resource-servers/$resource-server-id' \
  --header 'Authorization: Bearer $management_access_token' \
  --header 'Content-Type: application/json'
```

`subject_type_authorization` プロパティには、`client.policy` と `user.policy` の値を設定できます。

* policy の値が `allow_all` の場合、アプリケーションまたはユーザーは、その API に登録されているすべての `authorization_details` タイプをリクエストできます。
* policy の値が `require_client_grant` の場合、そのアプリケーションでは、各 `authorization_details` タイプがクライアントグラントによって明示的に許可されている必要があります。
* policy の値が `deny_all` の場合、どのアプリケーションまたはユーザーも、その API に登録されている `authorization_details` タイプを一切リクエストできません。

アプリケーションのクライアントグラントの管理方法について詳しくは、[API へのアプリケーションアクセス: クライアントグラント](/docs/ja-jp/get-started/applications/application-access-to-apis-client-grants) を参照してください。

<div id="set-customized-consent-prompt">
  ## カスタマイズされた同意プロンプトを設定する
</div>

同意プロンプトに、Rich Authorization Request の `authorization_details` をレンダリングできます。これを行うには、適切な template partials を使用して `customized-consent` prompt を設定します。

Auth0 CLI または Management API を使用して、カスタマイズされた同意プロンプトを設定できます。

<div id="auth0-cli">
  ### Auth0 CLI
</div>

Customized Consent の partials を設定するには、ターミナルで適切なフラグを指定して `auth0 ul customize` コマンドを実行します。

```bash lines theme={null}
auth0 ul customize
```

詳しくは、[auth0 universal-login customize のドキュメント](https://auth0.github.io/auth0-cli/auth0_universal-login_customize.html)をお読みください。

<div id="management-api">
  ### Management API
</div>

Customized Consent の partials を設定するには、`/prompts/customized-consent/partials` エンドポイントに `PUT` リクエストを送信します:

```bash lines theme={null}
curl --location --request PUT "https://$tenant/api/v2/prompts/customized-consent/partials" \
  --header "Authorization: Bearer $management_access_token" \
  --header "Content-Type: application/json" \
  --data '{
    "customized-consent": {
      "form-content": "<div style=\"font-size: 1.3em; font-weight: bold;\">Operation Details</div><hr style=\"margin: 10px 0;\"><div style=\"margin-bottom: 20px;\"></div><div style=\"font-weight: bold;\">Transaction Type</div><div>{{ transaction.params.authorization_details[0].type }}</div><div style=\"margin-bottom: 20px;\"></div><div style=\"font-weight: bold;\">Amount</div><div>{{ transaction.params.authorization_details[0].instructedAmount.amount }} {{ transaction.params.authorization_details[0].instructedAmount.currency }}</div><div style=\"margin-bottom: 20px;\"></div><div style=\"font-weight: bold;\">Recipient</div><div>{{ transaction.params.authorization_details[0].beneficiary }}</div><div style=\"margin-bottom: 20px;\"></div><div style=\"font-weight: bold;\">Destination Account</div><div>{{ transaction.params.authorization_details[0].destinationAccount }}</div><div style=\"margin-bottom: 20px;\"></div>"
    }
  }'
```

Customized Consent テンプレートは、Auth0 がエンドユーザーに表示する次の同意プロンプト内で `authorization_details` をレンダリングします。

<Frame>
  <img src="https://mintcdn.com/translations/c0RQ9V0YAcT0-8l5/docs/images/cdy7uua7fh8z/9NdSMIBWrNI2kbPuaVpon/afc3dde316d5a3577d0d181e6046fa81/Screenshot_2025-03-31_at_3.24.40_PM.png?fit=max&auto=format&n=c0RQ9V0YAcT0-8l5&q=85&s=53a40de3d96c09e7186a6140edbd566a" alt="" width="1236" height="714" data-path="docs/images/cdy7uua7fh8z/9NdSMIBWrNI2kbPuaVpon/afc3dde316d5a3577d0d181e6046fa81/Screenshot_2025-03-31_at_3.24.40_PM.png" />
</Frame>

[CIBA と RAR フローでのメール通知](/docs/ja-jp/get-started/authentication-and-authorization-flow/client-initiated-backchannel-authentication-flow/email-notifications-with-ciba)では、ユーザーに承認画面または拒否画面を表示するため、同意プロンプトをカスタマイズする必要があります。

<Frame>
  <img src="https://mintcdn.com/translations/xwVvTWJUElMm5YAK/docs/images/ciba/user_accepts_the_authentication_request.png?fit=max&auto=format&n=xwVvTWJUElMm5YAK&q=85&s=ce1d2f84cb81bab9ec88176b7ba41f11" alt="ユーザーが認証リクエストを承認する" style={{ width: '300px', height: 'auto' }} width="730" height="982" data-path="docs/images/ciba/user_accepts_the_authentication_request.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/translations/xwVvTWJUElMm5YAK/docs/images/ciba/user_rejects_authentication_request.png?fit=max&auto=format&n=xwVvTWJUElMm5YAK&q=85&s=cf9b9f25925235ea0221fec5e57da120" alt="ユーザーが認証リクエストを承認する" style={{ width: '300px', height: 'auto' }} width="774" height="1038" data-path="docs/images/ciba/user_rejects_authentication_request.png" />
</Frame>

同意プロンプトをカスタマイズする方法について詳しくは、以下を参照してください。

* [Universal Login ページをカスタマイズする](/docs/ja-jp/customize/login-pages/universal-login/customize-templates)
* [No-Code Editor で Universal Login をカスタマイズする](/docs/ja-jp/customize/login-pages/universal-login/customize-themes)
* [プロンプトに partials を設定する API ドキュメント](/docs/ja-jp/api/management/v2/prompts/put-partials)

<div id="optional-configure-consent-policy-for-the-resource-server">
  ## 任意: リソースサーバーの同意ポリシーを設定する
</div>

リソースサーバーの同意ポリシーでは、Auth0 が `authorization_details` の値を保存し、プッシュ通知の送信時にそれらをモバイルアプリケーションで利用できるようにするかどうかを決定します。

`authorization_details` を含むリクエストに対する、Auth0 の標準の同意ポリシーの動作を確認してください。

| フロー                   | プッシュ通知の送信 | 動作                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| --------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| すべて                   | いいえ       | カスタマイズされた同意プロンプトが表示されます。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| PAR を使用する認可コードフロー     | はい        | 同意プロンプトは表示されません。同意は、プッシュ通知チャレンジを受け取るモバイルアプリケーション側で表示する必要があります。<br />Auth0 Guardian app を使用している場合、`authorization_details` は自動的にユーザーに表示されます。<br />カスタムモバイルアプリを使用している場合、`authorization_details` は Auth0 Guardian SDK を使用して取得できます。                                                                                                                                                                                                                                                                          |
| クライアント主導のバックチャネル認証フロー | はい        | CIBA リクエストの認可に Auth0 Guardian app を使用している場合、`authorization_details` は自動的に取得されて表示されます。<br />CIBA リクエストの認可にカスタムモバイルアプリを使用している場合、`authorization_details` は Auth0 Guardian SDK を使用して取得できます。<br />CIBA リクエストを Web リンク (たとえばメール内のリンク) で認可している場合は、カスタマイズされた同意プロンプトが表示されます。<br />ユーザーが Web リンクで承認する際に、お客様が CIBA リクエストの第 2 認証要素としてプッシュ通知をトリガーすることもできます。その場合の動作は上記と同じです。Auth0 Guardian app は `authorization_details` を再度自動的にユーザーへ表示し、カスタムモバイルアプリは必要に応じて Auth0 Guardian SDK を使用して `authorization_details` を取得できます。 |

お客様は、`consent_policy` を `transactional-authorization-with-mfa` に設定することもできます。この場合の動作は次のとおりです。

| フロー                   | プッシュ通知の送信 | 動作                                                                                                                                                                                                                                                                                                                                                                                                    |
| --------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PAR を使用する認可コードフロー     | いいえ       | カスタマイズされた同意プロンプトが表示されます。                                                                                                                                                                                                                                                                                                                                                                              |
| PAR を使用する認可コードフロー     | はい        | 同意プロンプトは表示されません。お客様のソリューションで、独自のユーザーインターフェースを使って同意を表示する必要があります。Auth0 はリクエストに一意の ID を割り当て、`event.transaction.requested_authorization_details` とともに `event.transaction.linking_id` として Post-Login Action に公開します。<br />Auth0 Guardian app を使用している場合、`authorization_details` は表示されません。<br />カスタムモバイルアプリを使用している場合、プッシュ通知には `linking_id` が含まれ、必要に応じてアプリケーション開発者が独自の API から `authorization_details` を取得できます。 |
| クライアント主導のバックチャネル認証フロー | すべて       | `transactional-authorization-with-mfa` 同意ポリシーでは CIBA フローはサポートされていません                                                                                                                                                                                                                                                                                                                                  |

リソースサーバーの同意ポリシーは、[Auth0 Dashboard](https://manage.auth0.com/) または [Management API](https://auth0.com/docs/api/management/v2) で設定できます。

<Tabs>
  <Tab title="Auth0 Dashboard">
    Auth0 Dashboard を使用して、API の設定で同意ポリシーを設定します。

    1. [Auth0 Dashboard > Applications > APIs](https://manage.auth0.com/#/apis) に移動します。
    2. **設定** タブを選択します。
    3. **Access Settings** で、**Standard** 同意ポリシーを選択します。
    4. 変更を保存します。

    <Frame>
      <img src="https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png?fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=e4234d4072703c1495652222fc652bff" alt="Dashboard > Applications > APIs > Settings > Access Settings" data-og-width="1976" width="1976" data-og-height="1046" height="1046" data-path="docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png?w=280&fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=6f2c6e4c54822600b933dc083dc5a87d 280w, https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png?w=560&fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=71342985147204b3d17c8c12fd1e2fe2 560w, https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png?w=840&fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=973f30d9696046a31f2cae70c81a3d40 840w, https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png?w=1100&fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=e44a59afa67d61e885524e1101146742 1100w, https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png?w=1650&fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=3f6398ef200e35bdee902f0cc812be57 1650w, https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3gr8Sf98gh8CUkjnlodNk/cf33985b1e5b62082d46e4f5c8bbed6f/Screenshot_2025-03-31_at_8.22.45_PM.png?w=2500&fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=5aee2ac2199b3a9eb4f0d4a42d22297f 2500w" />
    </Frame>
  </Tab>

  <Tab title="Management API">
    Management API を使用してリソースサーバーまたは API の同意ポリシーを設定するには、[Update a resource server](https://auth0.com/docs/api/management/v2/resource-servers/patch-resource-servers-by-id) エンドポイントに `PATCH` リクエストを送信します。`PATCH` リクエストでは、`consent_policy` を `standard` に設定します。

    ```bash wrap lines theme={null}
    curl --location --request PATCH 'https://$tenant/api/v2/resource-servers/$resource-server-id' \
      --header 'Authorization: Bearer $management_access_token' \
      --header 'Content-Type: application/json' \
      --data-raw '{ "consent_policy": "standard" }'
    ```
  </Tab>
</Tabs>
