[task-230] [fix] tandoor: authelia

This commit is contained in:
roydfalk 2025-01-08 22:56:02 +01:00
parent 52c675f6e3
commit 5a7f10561c
2 changed files with 2 additions and 18 deletions

View file

@ -8,6 +8,7 @@ Für Rezepte-Sammlung [Tandoor](https://tandoor.dev/)
- [Tandoor-Dokumentation | Installation](https://docs.tandoor.dev/install/manual/) - [Tandoor-Dokumentation | Installation](https://docs.tandoor.dev/install/manual/)
- [Tandoor-Dokumentation | Konfiguration](https://docs.tandoor.dev/system/configuration/) - [Tandoor-Dokumentation | Konfiguration](https://docs.tandoor.dev/system/configuration/)
- [Tandoor-Dokumentation | Allauth](https://docs.tandoor.dev/features/authentication/#allauth) - [Tandoor-Dokumentation | Allauth](https://docs.tandoor.dev/features/authentication/#allauth)
- https://docs.djangoproject.com/en/5.1/ref/django-admin/#envvar-DJANGO_SUPERUSER_PASSWORD
## ToDo ## ToDo

View file

@ -19,24 +19,7 @@ REMOTE_USER_AUTH=0
{% if var_tandoor_authentication_kind == 'authelia' %} {% if var_tandoor_authentication_kind == 'authelia' %}
ENABLE_SIGNUP=0 ENABLE_SIGNUP=0
REMOTE_USER_AUTH=1 REMOTE_USER_AUTH=1
SOCIALACCOUNT_PROVIDERS = { SOCIALACCOUNT_PROVIDERS={"openid_connect": {"OAUTH_PKCE_ENABLED": false, "APPS": [{"provider_id": "authelia", "name": "{{var_tandoor_authentication_data_authelia_label}}", "client_id": "{{var_tandoor_authentication_data_authelia_client_id}}", "secret": "{{var_tandoor_authentication_data_authelia_client_secret}}", "settings": {"server_url":"{{var_tandoor_authentication_data_authelia_url_base}}", "token_auth_method": "client_secret_basic", "oauth_pkce_enabled": false}}]}}
"openid_connect": {
"OAUTH_PKCE_ENABLED": False,
"APPS": [
{
"provider_id": "authelia",
"name": "{{var_tandoor_authentication_data_authelia_label}}",
"client_id": "{{var_tandoor_authentication_data_authelia_client_id}}",
"secret": "{{var_tandoor_authentication_data_authelia_client_secret}}",
"settings": {
"server_url": "{{var_tandoor_authentication_data_authelia_url_base}}",
"token_auth_method": "client_secret_basic",
"oauth_pkce_enabled": False,
},
},
]
}
}
{% endif %} {% endif %}
SECRET_KEY={{var_tandoor_secret_key}} SECRET_KEY={{var_tandoor_secret_key}}