Switch to introspection

This commit is contained in:
Keval Kapdee 2023-11-03 23:54:52 +00:00
parent 634983a6cb
commit 07b446c04e
3 changed files with 4 additions and 4 deletions

View File

@ -434,9 +434,9 @@ OAUTH2_CLIENT_ID=
# Specify the OAuth2 client secret # Specify the OAuth2 client secret
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 # Specify the user info endpoint URL of the oauth2 provider
OAUTH2_TOKENINFO_URL= OAUTH2_INTROSPECTION_URL=
# ----------------------------------------------- # -----------------------------------------------
# --- LDAP Section ------------------------------ # --- LDAP Section ------------------------------

View File

@ -1,3 +1,3 @@
client_id = verySecretId client_id = verySecretId
client_secret = verySecretSecret client_secret = verySecretSecret
tokeninfo_url = https://oauth2.domain.com/user_info?token= introspection_url = https://oauth2.domain.com/userinfo/

View File

@ -156,7 +156,7 @@ function _environment_variables_oauth2() {
VARS[OAUTH2_CLIENT_ID]="${OAUTH2_CLIENT_ID:=}" VARS[OAUTH2_CLIENT_ID]="${OAUTH2_CLIENT_ID:=}"
VARS[OAUTH2_CLIENT_SECRET]="${OAUTH2_CLIENT_SECRET:=}" 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. # This function handles environment variables related to LDAP.