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
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-05-04 18:28:58 +0300
committerLukas Reschke <lukas@statuscode.ch>2021-05-04 18:28:58 +0300
commit8afcb434dcfcc88ac2d3317aa686c7c21d52ffff (patch)
tree4e89ad6994a35069290e25c41c30bf3176cf363a /lib/SAMLSettings.php
parent6f51a9223d27ea7288b9efbddbc5043d8ac51907 (diff)
Allow setting of "retrieveParametersFromServer"
Some SAML servers require this type of decoding, otherwise the SLO request fails. Ideally the library would perform both verifications (https://github.com/onelogin/php-saml/issues/466), but it seems upstream doesn't want to perform this change. Until we have considered a better solution for this, this adds a new checkbox that one can configure. Ref https://github.com/nextcloud/user_saml/issues/403 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/SAMLSettings.php')
-rw-r--r--lib/SAMLSettings.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/SAMLSettings.php b/lib/SAMLSettings.php
index d25fa16a..29a68395 100644
--- a/lib/SAMLSettings.php
+++ b/lib/SAMLSettings.php
@@ -88,6 +88,10 @@ class SAMLSettings {
return ($setting === '1' && $type === 'saml');
}
+ public function usesSloWebServerDecode() : bool {
+ return $this->config->getAppValue('user_saml', 'security-sloWebServerDecode', '0') === '1';
+ }
+
/**
* get config for given IDP
*