> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/pentesuto/configure-a-pentest/setting-up-authenticated-testing/oauth0-configuration.md).

# Auth0設定

ペンテストエージェントは、複数のインスタンス間でセッション状態を共有します。これが正しく動作するように、Auth0 で次の設定を適用してください。

{% hint style="info" %}
このページでは Auth0 に特化して説明しています。参照 [OAuth と JWT アプリ](/docs/docs-ja/pentesuto/configure-a-pentest/setting-up-authenticated-testing.md#oauth-and-jwt-apps) 任意の OIDC プロバイダーに適用される一般的なモデルについて。
{% endhint %}

{% stepper %}
{% step %}
**アプリケーション設定を開く**

［Applications］→［Your Application］→［Settings］に移動します。

<figure><img src="/files/2713ea236ee7af762cb48174605eda9c16cc7920" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**リフレッシュトークンのローテーションを無効にする**

[リフレッシュトークンのローテーション](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-13#section-4.12) 各トークン交換のたびに新しいリフレッシュトークンを発行します。これによりエージェントの共有セッションモデルに干渉するため、無効にする必要があります。

<figure><img src="/files/03751a1a4420cdb1426631c52404f4327c1c46cd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**リフレッシュトークンの有効期間を設定する**

実行中のエージェントの再認証頻度を減らすために、リフレッシュトークンの有効期間を十分に長く設定してください（推奨：7200秒より長い）。

<figure><img src="/files/f8d7290dbfaa066f7531e6c2691c93042aa71054" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/pentesuto/configure-a-pentest/setting-up-authenticated-testing/oauth0-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
