> For the complete documentation index, see [llms.txt](https://manual.boxexchanger.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.boxexchanger.net/nachalo-raboty/nastroika-bezopasnosti/nastroika-autentifikacii.md).

# Настройка аутентификации

{% stepper %}
{% step %}

### Настройка CORS

На странице "**Настройки сайта**" - в разделе "**Configs**" - в блоке "[**ADMIN SECURITY**](#user-content-fn-1)[^1]" - в поле "**Origin admin domain (CORS)**" введите домен вашей админ панели без https\://. Пример: `admin.exchanger.com` -> нажмите "**Save**".
{% endstep %}

{% step %}

### Настройки администратора

Для настройки аутентификации администратора, в правом верхнем углу админ панели нажмите на имя администратора -> "[**Редактировать профиль**](#user-content-fn-2)[^2]" -> на странице настроек администратора откройте раздел "[**Доступ**](#user-content-fn-3)[^3]".
{% endstep %}

{% step %}

### 2FA

Для подключения двухфакторной аутентификации, нажмите "[**Активировать**](#user-content-fn-4)[^4]" -> отсканируйте QR-код или укажите секретный код в приложении для двухэтапной аутентификации (Google Authenticator) -> введите 2FA -> нажмите "[**Подтвердить**](#user-content-fn-5)[^5]".

{% hint style="warning" %}
Для отключения 2FA, нажмите "[**Деактивировать**](#user-content-fn-6)[^6]" -> согласитесь с деактивацией -> введите 2FA либо пройдите аутентификацию через WebAuthn (если подключено)
{% endhint %}
{% endstep %}

{% step %}

### WebAuthn

Для подключения WebAuthn (например, FIDO2-ключа, Face ID / Touch ID, или passkey в iCloud / браузере), в разделе "*WebAuthn Devices"* нажмите "[**Set up new device**](#user-content-fn-7)[^7]" -> введите имя устройства -> [**выберите**](#user-content-fn-8)[^8] подходящий Passkey -> следуйте инструкциям на экране -> после успешного добавления вы увидите уведомление "[**Added device**](#user-content-fn-9)[^9]".

{% hint style="warning" %}
Для удаления устройства WebAuthn, нажмите "[**Remove device**](#user-content-fn-10)[^10]" -> пройдите аутентификацию через WebAuthn.
{% endhint %}

{% hint style="success" %}
Вы можете добавить несколько устройств для WebAuthn.
{% endhint %}
{% endstep %}

{% step %}

### Вход в аккаунт

После подключения 2FA и/или WebAuthn, при входе в админ-панель, кроме логина и пароля, потребуется пройти дополнительную аутентификацию — ввести код 2FA или подтвердить вход через WebAuthn.
{% endstep %}
{% endstepper %}

[^1]: ![](/files/xiAsZOparXYn9ECQjFmc)

[^2]: ![](/files/fKbLYuFZc49kip4Io6qa)

[^3]: ![](/files/jvhxAHsDzoa5dNVfCWUY)

[^4]: ![](/files/DxHBJrjPkQnl1Zr8lNwO)

[^5]: ![](/files/hcCZ5SsRALVPJ1mxuh5f)

[^6]: ![](/files/IzholdQVxkwjNOYjfrUc)

[^7]: ![](/files/iumQpnWn6YWDcuBCE2W9)

[^8]: ![](/files/OxQWwuOpN9qcH92LbVFl)

[^9]: ![](/files/SHoQ40EwwPgHSSc0KLsT)

[^10]: ![](/files/ZpVGC6aw3jmlUdRoCH95)


---

# 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://manual.boxexchanger.net/nachalo-raboty/nastroika-bezopasnosti/nastroika-autentifikacii.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.
