fix authentik sso
This commit is contained in:
parent
db1e7bc88a
commit
87406eb3ab
|
@ -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'
|
||||
|
|
4
abra.sh
4
abra.sh
|
@ -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\",
|
||||
|
|
Loading…
Reference in New Issue