> 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/en/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 authentication

You can set up Basic authentication on a per-domain basis.

## How to set up Basic authentication

Click **\[Settings]** and choose **the workspace you want to set up Basic authentication for**. **"Basic auth credentials"** will appear at the bottom of the page.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-f6d534de92271c7dacc31ba31f5f7d021db75e2d%2F2022-10-14_14-49-34.png?alt=media)

Click **\[Add]**. A **New Basic Auth Credentials Page** will appear, where you will be prompted to enter the **domain name, username, and password**. Enter the information and click **\[Save]**.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-c724b0720be9e1e1007fe9d7ade30a2a02557b9a%2Fzndsk-17_Click_Element_passed.png?alt=media)

{% hint style="warning" %}
**Not displayed?**

Only [Workspace Managers](https://help.autify.com/nocode-web/en/autify-university/advanced/user-management/user-roles-feature.md) are able to configure Basic authentication.
{% endhint %}

## 2. If setting up on a per-domain basis does not work

Currently, you can only set up Basic authentication on a per-domain basis, so if you need to set it up on a different granularity, please send us feedback using the Contact Us feature on the lower right corner of the page. When you do so, please tell us your preferred setup.

For example, setting up Basic authentication on a per-domain basis will not work in the following cases:

* The username and password for `https://example.com/A/` is `user_a / password_a`
* The username and password for `https://example.com/B/` is `user_b / password_b`

Although this is not a highly recommended solution, **you may be able to run tests in the following way.**\
As shown in the example below, set up the "start URL" so that information for Basic authentication is included (this method also works for Digest authentication).

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

There are three points to keep in mind when using this method:

1. The test will not work if you assign a URL like this to a domain that already has Basic authentication set up. Please use either solution described above.
2. Some JavaScript methods do not work due to security issues, which may affect the website's behavior.
3. For security reasons, Safari does not accept this solution as of September 11, 2020. It may also be banned on other browsers in the future.

## 3. Other notes

* If you have registered the Basic authentication information in workspace settings but authentication does not take place on the target website, the test execution engine will run as usual. Error messages will not appear on test results, so you cannot test whether Basic authentication is working on the target website.
* There is currently no limit to the number of Basic Authentications that can be set up in Autify. Please set as many as you need.
* Using a wildcard (\*) in the domain name, such as "\*.autify.com," will cause the local replay to fail.


---

# 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/en/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.
