Skip to content

Commit f231861

Browse files
Configure OIDC scopes from env variable (#170)
1 parent f3e40e6 commit f231861

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/files/configure_misp.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ set_up_oidc() {
9797
\"client_secret\": \"${OIDC_CLIENT_SECRET}\",
9898
\"roles_property\": \"${OIDC_ROLES_PROPERTY}\",
9999
\"role_mapper\": ${OIDC_ROLES_MAPPING},
100-
\"default_org\": \"${OIDC_DEFAULT_ORG}\"
100+
\"default_org\": \"${OIDC_DEFAULT_ORG}\",
101+
\"scopes\": ${OIDC_SCOPES}
101102
}
102103
}" > /dev/null
103104

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ services:
118118
- "OIDC_ROLES_MAPPING=${OIDC_ROLES_MAPPING}"
119119
- "OIDC_DEFAULT_ORG=${OIDC_DEFAULT_ORG}"
120120
- "OIDC_LOGOUT_URL=${OIDC_LOGOUT_URL}"
121+
- "OIDC_SCOPES=${OIDC_SCOPES}"
121122
# LDAP authentication settings
122123
- "LDAP_ENABLE=${LDAP_ENABLE}"
123124
- "LDAP_APACHE_ENV=${LDAP_APACHE_ENV}"

0 commit comments

Comments
 (0)