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:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-05-10 11:14:46 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-05-29 00:00:34 +0300
commit4e8ee3ae0a55b98e9972afcd59bbfbaeb0eddf3e (patch)
treecf8ba0cdfacc664b16bf45d17b59c819308f15a2 /lib/SAMLSettings.php
parent4f54c7b8b1f2fe2747ec701de8a4586c486d4e8b (diff)
Make NameIDFormat configurable
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/SAMLSettings.php')
-rw-r--r--lib/SAMLSettings.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/SAMLSettings.php b/lib/SAMLSettings.php
index 39fd1019..a400ef67 100644
--- a/lib/SAMLSettings.php
+++ b/lib/SAMLSettings.php
@@ -26,6 +26,7 @@ use OCP\IConfig;
use OCP\IRequest;
use OCP\ISession;
use OCP\IURLGenerator;
+use OneLogin\Saml2\Constants;
class SAMLSettings {
/** @var IURLGenerator */
@@ -124,6 +125,7 @@ class SAMLSettings {
'assertionConsumerService' => [
'url' => $this->urlGenerator->linkToRouteAbsolute('user_saml.SAML.assertionConsumerService'),
],
+ 'NameIDFormat' => $this->config->getAppValue('user_saml', 'sp-name-id-format', Constants::NAMEID_UNSPECIFIED)
],
'idp' => [
'entityId' => $this->config->getAppValue('user_saml', $prefix . 'idp-entityId', ''),