Skip to content

Commit

Permalink
Set the custom logout URL if OIDC_LOGOUT_URL is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolamaral committed Sep 18, 2024
1 parent 65d145e commit 2bd14bf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/files/configure_misp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@ set_up_oidc() {
}
}" > /dev/null

# Set the custom logout URL for the OIDC plugin
sudo -u www-data /var/www/MISP/app/Console/cake Admin setSetting -q "Plugin.CustomAuth_custom_logout" "${OIDC_LOGOUT_URL}&post_logout_redirect_uri=${BASE_URL}/users/login"
# Set the custom logout URL for the OIDC plugin only if OIDC_LOGOUT_URL is defined
if [[ -n "${OIDC_LOGOUT_URL}" ]]; then
sudo -u www-data /var/www/MISP/app/Console/cake Admin setSetting -q "Plugin.CustomAuth_custom_logout" "${OIDC_LOGOUT_URL}&post_logout_redirect_uri=${BASE_URL}/users/login"
else
echo "OIDC_LOGOUT_URL is not set"
fi

# Disable password confirmation as stated at https://github.com/MISP/MISP/issues/8116
sudo -u www-data /var/www/MISP/app/Console/cake Admin setSetting -q "Security.require_password_confirmation" false
Expand Down

0 comments on commit 2bd14bf

Please sign in to comment.