diff --git a/mailserver.env b/mailserver.env index d3ea0f14..144fd310 100644 --- a/mailserver.env +++ b/mailserver.env @@ -434,9 +434,9 @@ OAUTH2_CLIENT_ID= # Specify the OAuth2 client secret OAUTH2_CLIENT_SECRET= -# empty => https://oauth2.domain.com/user_info?token= +# empty => https://oauth2.domain.com/userinfo/ # Specify the user info endpoint URL of the oauth2 provider -OAUTH2_TOKENINFO_URL= +OAUTH2_INTROSPECTION_URL= # ----------------------------------------------- # --- LDAP Section ------------------------------ diff --git a/target/dovecot/dovecot-oauth2.conf.ext b/target/dovecot/dovecot-oauth2.conf.ext index 54ca80d6..600e40a3 100644 --- a/target/dovecot/dovecot-oauth2.conf.ext +++ b/target/dovecot/dovecot-oauth2.conf.ext @@ -1,3 +1,3 @@ client_id = verySecretId client_secret = verySecretSecret -tokeninfo_url = https://oauth2.domain.com/user_info?token= +introspection_url = https://oauth2.domain.com/userinfo/ diff --git a/target/scripts/startup/variables-stack.sh b/target/scripts/startup/variables-stack.sh index 1fc2fe85..812db7e5 100644 --- a/target/scripts/startup/variables-stack.sh +++ b/target/scripts/startup/variables-stack.sh @@ -156,7 +156,7 @@ function _environment_variables_oauth2() { VARS[OAUTH2_CLIENT_ID]="${OAUTH2_CLIENT_ID:=}" VARS[OAUTH2_CLIENT_SECRET]="${OAUTH2_CLIENT_SECRET:=}" - VARS[OAUTH2_TOKENINFO_URL]="${OAUTH2_TOKENINFO_URL:=}" + VARS[OAUTH2_INTROSPECTION_URL]="${OAUTH2_INTROSPECTION_URL:=}" } # This function handles environment variables related to LDAP.