Files
iiEsaywebUI/FIX_OAUTH_SLUG.md
2026-02-19 18:12:09 +00:00

42 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Исправление slug для Authentik OAuth
## Проблема
Endpoint `https://auth.iieasy.ru/application/o/ii-easy-web/.well-known/openid-configuration` возвращает HTML "Not Found".
## Решение
Правильный slug в Authentik - это `open-webui`, а не `ii-easy-web`.
**1. Исправлен `.env` файл:**
```bash
OPENID_CONNECT_ISSUER=https://auth.iieasy.ru/application/o/open-webui/
```
**2. Перезапустите контейнер:**
```bash
cd /home/its/iiEasyWeb
sudo docker compose restart open-webui
```
**3. Проверьте endpoint:**
```bash
curl https://auth.iieasy.ru/application/o/open-webui/.well-known/openid-configuration
```
Должен вернуться JSON с конфигурацией OpenID Connect.
**4. Проверьте OAuth:**
После перезапуска откройте `https://odo.iieasy.ru` и попробуйте войти через кнопку "iiEasy ID" (OAuth).
## Проверка в Authentik
В Authentik для Application должен быть настроен:
- **Slug**: `open-webui`
- **Redirect URI**: `https://odo.iieasy.ru/oauth/oidc/callback`
- **Client ID** и **Client Secret** должны совпадать с `.env`