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

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

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

これにより、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/miscellaneous/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.
