Skip to content

Commit

Permalink
Support optional OIDC_ISSUER parameter (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianmg99 authored Apr 24, 2024
1 parent b8d722a commit 313681a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/files/configure_misp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ set_up_oidc() {
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

sudo -u www-data php /var/www/MISP/tests/modify_config.php modify "{
Expand All @@ -114,6 +115,7 @@ set_up_oidc() {
sudo -u www-data php /var/www/MISP/tests/modify_config.php modify "{
\"OidcAuth\": {
\"provider_url\": \"${OIDC_PROVIDER_URL}\",
${OIDC_ISSUER:+\"issuer\": \"${OIDC_ISSUER}\",}
\"client_id\": \"${OIDC_CLIENT_ID}\",
\"client_secret\": \"${OIDC_CLIENT_SECRET}\",
\"roles_property\": \"${OIDC_ROLES_PROPERTY}\",
Expand Down

0 comments on commit 313681a

Please sign in to comment.