From c55614dc3ce17fc7354c1d7112a54394214caec3 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 31 Jul 2017 00:49:24 +0200 Subject: [PATCH] Add baseurl to SAML settings In case the protected server is behind reverse proxies with a different protocol this is required. Signed-off-by: Lukas Reschke --- lib/samlsettings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/samlsettings.php b/lib/samlsettings.php index 79e0db1..2d30ff9 100644 --- a/lib/samlsettings.php +++ b/lib/samlsettings.php @@ -45,6 +45,7 @@ class SAMLSettings { $settings = [ 'strict' => true, 'debug' => $this->config->getSystemValue('debug', false), + 'baseurl' => $this->urlGenerator->getAbsoluteURL('/'), 'security' => [ 'nameIdEncrypted' => ($this->config->getAppValue('user_saml', 'security-nameIdEncrypted', '0') === '1') ? true : false, 'authnRequestsSigned' => ($this->config->getAppValue('user_saml', 'security-authnRequestsSigned', '0') === '1') ? true : false,