> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/autify-university/advanced/authentication/basic-authentication.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Basic認証

ドメイン単位での設定に対応しています。

## 1. 設定方法

**「設定」＞Basic認証を設定したいワークスペース** の順にクリックすると、画面の下部に **Basic認証情報** という項目が表示されます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-f69a5730c78b7b99fcbc755aaa768efa7fa6c755%2Fzndsk-Screenshot_2021-09-08_11.09.52.png?alt=media)

**追加** をクリックすると **ドメイン名、ユーザー名、パスワード** の入力を求める **「Basic認証情報」作成ページ** が表示されます。情報を入力し、 **作成** をクリックしてください。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-53f931b222718e156a4879b03b928ee336852596%2Fzndsk-Screenshot_2020-08-17_13.31.37_BASIC_auth.png?alt=media)

{% hint style="warning" %}
**表示されませんか？**

[ワークスペース管理者](https://help.autify.com/nocode-web/autify-university/advanced/user-management/user-roles-feature.md)のみがBasic認証の設定が可能です。
{% endhint %}

## 2. ドメイン単位の設定ではうまくいかない場合

現状ドメイン単位の設定しかできないため、その他の粒度で設定が必要な場合はどういった設定が必要かの情報を添えて、画面右下のお問い合わせ機能からご要望としてご連絡いただけますと幸いです。

ドメイン単位の設定ではうまくいかないケースとは例えば以下のような場合が挙げられます。

* `https://example.com/A/` のユーザー名とパスワードは `user_a / password_a`
* `https://example.com/B/` のユーザー名とパスワードは `user_b / password_b`

こういった場合には強く推奨はできないのですが、**次の方法でテストできる場合があります**。 以下の例のように「開始URL」にBasic認証の情報を含ませて設定してください。（なお、この方法はBasic認証に限らずDigest認証でも利用可能な場合があります）

* `https://user_a:password_a@example.com/A/`

この方法には留意事項が3点存在します。

1. Basic認証設定がすでにされているドメインに対してこの方法のURLを指定するとテストがうまくいきません。どちらか片方を設定するようにしてください。
2. 一部のJavaScriptのメソッドがセキュリティ上の問題で動作しないため、Webサイトの挙動に影響が出る場合があります。
3. セキュリティ上の理由から2020年9月11日現在Safariでは許可されておらず、今後他のブラウザでも禁止される可能性があります。

## 3. その他留意事項

* ワークスペースの設定でBasic認証の情報が登録されているが、実際には対象の Web サイトで認証を行っていない場合でも、テスト実行エンジンは通常通りテストを実行します。テスト結果にエラーメッセージ等は表示されませんので、「対象のサイトで Basic認証が機能しているか」といったテストを行うことはできません。
* 現在Autifyで設定できるBasic認証の数に上限はございません。必要な数だけご設定ください。
* ドメイン名に「\*.autify.com」のようにワイルドカード(\*)を指定すると、ローカルリプレイ時にエラーが発生します。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/autify-university/advanced/authentication/basic-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
