> 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/penetorshontesuto/configure-a-pentest/setting-up-authenticated-testing/google-auth.md).

# Google 認証

{% hint style="warning" %}
**テストには、会社ドメインのGoogleアカウントを使用してください。**

新しく作成した無料のGmailアカウントは使用しないでください。Googleはそれをブロックするか、ログインをボットの挙動としてフラグ付けする可能性が高いです。
{% endhint %}

エージェントがGoogle認証でログインできるようにするには、次の手順に従ってください：

{% stepper %}
{% step %}
**セキュリティ設定に移動する**

アカウントの設定ページに移動します: <https://myaccount.google.com/u/1/security>

<figure><img src="/files/dd784b4ae021b59c98fcfd1363c5d49f159b853a" alt=""><figcaption></figcaption></figure>

認証アプリのセットアップフローを開始します。
{% endstep %}

{% step %}
**MFAオンボーディング**

MFAを設定するには、認証アプリのオプションをクリックします。

<figure><img src="/files/1f12a1c4ffe73ccbf593076fb78e9f139c551884" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**コードではなくシークレットを取得する**

QRコードが表示されたら、次を選択します **「スキャンできませんか？」**

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

{% step %}
**キーをコピーする**

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

{% step %}
**パスワードマネージャーにキーを保存する**

キーはお好みのパスワードマネージャーに保存してください。1Password や Bitwarden のように、シークレットを簡単にコピーできるものをおすすめします。
{% endstep %}

{% step %}
**フローを完了し、2段階認証を有効にします**

<figure><img src="/files/8d025b0705663504a965eca59360bd893cfd6b02" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Aikido Pentestで認証を設定する**

次のような形式で手順を書いてください：

```
ステップ1: domain.com/login に移動する
ステップ2: 「Google Login」を選択します。accounts.google.com にリダイレクトされます
ステップ3: 次の認証情報を入力します：
- ユーザー名: security-test@company.com
- パスワード: wrongpassword
ステップ4: TOTPを生成してログインする
成功条件: ログインに成功すると、ホーム画面に「Hello Patrick」が表示されます
```

{% endstep %}

{% step %}
**TOTP URLを追加する**

キーは base32 形式で追加してください。Google のキーは、貼り付ける前にスペースを削除してください。

<figure><img src="/files/b1a80f3668f6bd2a3c85387bacc7cd17f9f893af" 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/penetorshontesuto/configure-a-pentest/setting-up-authenticated-testing/google-auth.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.
