> 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/dast-sfesu/using-2fa-in-front-end-and-api-scans.md).

# フロントエンドおよび API スキャンで 2FA を使用する

アプリへのログインに TOTP コードが必要な場合、その 2FA トークンの otpauth URL を提供していただければ、Aikido はスキャン中にログインできます。

これにより、Aikido は認証アプリと同じ 6 桁のコードを生成できます。

## otpauth URL とは何ですか

otpauth URL には、時間ベースのコードを生成するために必要な TOTP のシークレットと設定が含まれています。

次のようになります:

```
otpauth://totp/MyApp:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=MyApp
```

## otpauth URL の取得方法

URL は次のいずれかの方法で取得できます:

### 1. 2FA の設定画面から

次を探してください:

* シークレットを表示
* 手動設定
* 代わりにキーを入力

一部のプロバイダでは otpauth URL が直接表示されます。Base32 シークレットのみを表示するものもあります。

Base32 シークレットしかない場合は、次のようにして自分で URL を作成できます:

```
otpauth://totp/<Label>?secret=<BASE32SECRET>&issuer=<YourApp>
```

### 2. QR コードをスキャンする

設定に QR コードが表示される場合:

* テキスト内容を表示できる任意の QR リーダーを使用する
* スキャン結果が完全な otpauth URL になります

### 3. IdP または管理者パネルから

一部の IdP では、サービスアカウント用の TOTP シードを公開しています。

次のような項目を探してください:

* OTP URI
* TOTP 設定
* MFA シード

ログインに SMS、プッシュ通知、またはハードウェアキーを使用している場合、otpauth URL は取得できません。これらは現時点では Aikido ではサポートされていません。


---

# 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/dast-sfesu/using-2fa-in-front-end-and-api-scans.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.
