OIDC settings updated

This commit is contained in:
Vladimir D 2024-10-17 14:33:29 +04:00
parent fe1cf9c68e
commit 5deb8763a7
2 changed files with 2 additions and 1 deletions

View file

@ -41,6 +41,7 @@ OIDC_REDIRECT_URI=
OIDC_DISCOVERY= OIDC_DISCOVERY=
OIDC_SCOPE= OIDC_SCOPE=
OIDC_UID_FIELD= OIDC_UID_FIELD=
OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED=
# Application secrets # Application secrets
SECRET_KEY_BASE= SECRET_KEY_BASE=

View file

@ -40,7 +40,7 @@ if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
-e "s/OIDC_REDIRECT_URI=.*/OIDC_REDIRECT_URI=${CLOUDRON_APP_ORIGIN//\//\\\/}\/auth\/auth\/openid_connect\/callback/g" \ -e "s/OIDC_REDIRECT_URI=.*/OIDC_REDIRECT_URI=${CLOUDRON_APP_ORIGIN//\//\\\/}\/auth\/auth\/openid_connect\/callback/g" \
-e "s/OIDC_DISCOVERY=.*/OIDC_DISCOVERY=true/g" \ -e "s/OIDC_DISCOVERY=.*/OIDC_DISCOVERY=true/g" \
-e "s/OIDC_SCOPE=.*/OIDC_SCOPE=openid,profile,email/g" \ -e "s/OIDC_SCOPE=.*/OIDC_SCOPE=openid,profile,email/g" \
-e "s/OIDC_UID_FIELD=.*/OIDC_UID_FIELD=sub/g" \ -e "s/OIDC_UID_FIELD=.*/OIDC_UID_FIELD=preferred_username/g" \
-e "s/OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED=.*/OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED=true/g" \ -e "s/OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED=.*/OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED=true/g" \
-i /app/data/env.production -i /app/data/env.production
fi fi