Skip to content

Commit 7935a45

Browse files
authored
Try to clarify attributes.NameFormat is uri by default (#2350)
1 parent 5f9c4e3 commit 7935a45

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

metadata/saml20-idp-hosted.php.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ $metadata['urn:x-simplesamlphp:example-idp'] = [
2424
*/
2525
'auth' => 'example-userpass',
2626

27-
/* Uncomment the following to use the uri NameFormat on attributes. */
27+
/* The default attribute NameFormat is the uri NameFormat.
28+
To convert friendly names to urn, uncomment the below authproc.
29+
30+
Refer to https://simplesamlphp.org/docs/stable/simplesamlphp-reference-idp-hosted.html
31+
for other NameFormat options.
32+
*/
2833
/*
2934
'attributes.NameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
3035
'authproc' => [

modules/saml/docs/nameid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Generating Persistent NameID and eduPersonTargetedID.
150150
'name2oid',
151151
],
152152
],
153-
// The URN attribute NameFormat for OID attributes.
153+
// The URN attribute NameFormat for OID attributes. This is the default.
154154
'attributes.NameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
155155
'attributeencodings' => [
156156
'urn:oid:1.3.6.1.4.1.5923.1.1.1.10' => 'raw', /* eduPersonTargetedID with oid NameFormat is a raw XML value */

0 commit comments

Comments
 (0)