From 2d77dee0077e340f0aca1b7b34e8b6b667d18171 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Mon, 6 Oct 2014 13:01:41 +0000 Subject: [PATCH] Add NameIDFormats to output of getMetadata20IdP() --- lib/SimpleSAML/Metadata/SAMLParser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php index be930bd35..f96f0ef04 100644 --- a/lib/SimpleSAML/Metadata/SAMLParser.php +++ b/lib/SimpleSAML/Metadata/SAMLParser.php @@ -653,6 +653,7 @@ class SimpleSAML_Metadata_SAMLParser { * - 'SingleLogoutService': String with the URL where we should send logout requests(/responses). * - 'SingleLogoutServiceResponse': String where we should send logout responses (if this is different from * the 'SingleLogoutService' endpoint. + * - 'NameIDFormats': The name ID formats this IdP supports. * - 'certData': X509Certificate for entity (if present). * - 'certFingerprint': Fingerprint of the X509Certificate from the metadata. * @@ -695,6 +696,8 @@ class SimpleSAML_Metadata_SAMLParser { /* Find the ArtifactResolutionService endpoint. */ $ret['ArtifactResolutionService'] = $idp['ArtifactResolutionService']; + /* Add supported nameIDFormats */ + $ret['NameIDFormats'] = $idp['nameIDFormats']; /* Add public keys. */ if (!empty($idp['keys'])) { -- GitLab