From f23186129bff360642dcbd2a1c3236014a05ec72 Mon Sep 17 00:00:00 2001 From: Jordan Barnartt Date: Fri, 18 Oct 2024 09:38:52 -0400 Subject: [PATCH] Configure OIDC scopes from env variable (#170) --- core/files/configure_misp.sh | 3 ++- docker-compose.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/files/configure_misp.sh b/core/files/configure_misp.sh index 30902e8..9f68bc6 100755 --- a/core/files/configure_misp.sh +++ b/core/files/configure_misp.sh @@ -97,7 +97,8 @@ set_up_oidc() { \"client_secret\": \"${OIDC_CLIENT_SECRET}\", \"roles_property\": \"${OIDC_ROLES_PROPERTY}\", \"role_mapper\": ${OIDC_ROLES_MAPPING}, - \"default_org\": \"${OIDC_DEFAULT_ORG}\" + \"default_org\": \"${OIDC_DEFAULT_ORG}\", + \"scopes\": ${OIDC_SCOPES} } }" > /dev/null diff --git a/docker-compose.yml b/docker-compose.yml index ca3092f..d14deeb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -118,6 +118,7 @@ services: - "OIDC_ROLES_MAPPING=${OIDC_ROLES_MAPPING}" - "OIDC_DEFAULT_ORG=${OIDC_DEFAULT_ORG}" - "OIDC_LOGOUT_URL=${OIDC_LOGOUT_URL}" + - "OIDC_SCOPES=${OIDC_SCOPES}" # LDAP authentication settings - "LDAP_ENABLE=${LDAP_ENABLE}" - "LDAP_APACHE_ENV=${LDAP_APACHE_ENV}"