Add documentation and fix default values for OIDC_ROLES_MAPPING

pull/67/head
Stefano Ortolani 2024-05-09 10:03:55 +01:00
parent 887d1b3443
commit 639d6e746b
2 changed files with 5 additions and 1 deletions

View File

@ -102,6 +102,10 @@ set_up_oidc() {
return
fi
if [[ -z "$OIDC_ROLES_MAPPING" ]]; then
OIDC_ROLES_MAPPING="\"\""
fi
# Check required variables
# OIDC_ISSUER may be empty
check_env_vars OIDC_PROVIDER_URL OIDC_CLIENT_ID OIDC_CLIENT_SECRET OIDC_ROLES_PROPERTY OIDC_ROLES_MAPPING OIDC_DEFAULT_ORG

View File

@ -97,7 +97,7 @@ SYNCSERVERS_1_KEY=
# OIDC_CLIENT_ID=
# OIDC_CLIENT_SECRET=
# OIDC_ROLES_PROPERTY="roles"
# OIDC_ROLES_MAPPING={"admin": "1","sync-user": "5"}
# OIDC_ROLES_MAPPING="{\"admin\": \"1\"}"
# OIDC_DEFAULT_ORG=
# Enable LDAP (using the ApacheSecureAuth component) authentication, according to https://github.com/MISP/MISP/issues/6189