Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-31 01:49:24 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-07-31 10:33:39 +0300
commitc55614dc3ce17fc7354c1d7112a54394214caec3 (patch)
tree44d858caa0904dcaa7968aa379ae6b0b96ee2a60 /lib
parentce7ad7ad2055e50312691ee6ba160d97c6f2ad46 (diff)
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 <lukas@statuscode.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/samlsettings.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/samlsettings.php b/lib/samlsettings.php
index 79e0db12..2d30ff9e 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,