fix authentik sso

This commit is contained in:
Moritz 2023-04-06 19:34:05 +02:00
parent db1e7bc88a
commit 87406eb3ab
2 changed files with 3 additions and 3 deletions

View File

@ -44,4 +44,4 @@ SECRET_DB_PASSWORD_VERSION=v1
# AUTHENTIK_DOMAIN=authentik.example.com
# AUTHENTIK_SECRET_NAME=authentik_example_com_wordpress_secret_v1 # the same as in authentik
# AUTHENTIK_ID_NAME=authentik_example_com_wordpress_id_v1 # the same as in authentik
# LOGIN_TYPE='auto' # 'button'
# LOGIN_TYPE='auto'

View File

@ -21,7 +21,7 @@ core_install(){
set_authentik(){
AUTHENTIK_SECRET=$(cat /run/secrets/authentik_secret)
AUTHENTIK_ID=$(cat /run/secrets/authentik_id)
if [ -n $LOGIN_TYPE ]
if [ -z $LOGIN_TYPE ]
then
LOGIN_TYPE='button'
fi
@ -45,7 +45,7 @@ set_authentik(){
\"alternate_redirect_uri\":\"1\",
\"nickname_key\":\"preferred_username\",
\"email_format\":\"{email}\",
\"displayname_format\":\"{given_name} {family_name}\",
\"displayname_format\":\"\",
\"identify_with_username\":\"1\",
\"state_time_limit\":\"\",
\"token_refresh_enable\":\"1\",