Skip to content

Commit e119303

Browse files
committed
Document the new feature implemented by Andrea Biancini to add friendly names to attributes in the SP's metadata. Solves issue simplesamlphp#60.
1 parent 1ad2fd2 commit e119303

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

modules/saml/docs/sp.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ Options
9999
: The attributes will be added without a `NameFormat` by default.
100100
Use the `attributes.NameFormat` option to specify the `NameFormat` for the attributes.
101101

102+
: An associative array can be used, mixing both elements with and without keys. When a key is
103+
specified for an element of the array, it will be used as the friendly name of the attribute
104+
in the generated metadata.
105+
102106
: *Note*: This list will only be added to the metadata if the `name`-option is also specified.
103107

104108
`attributes.NameFormat`
@@ -411,13 +415,16 @@ Here we will list some examples for this authentication source.
411415

412416
'example-attributes => array(
413417
'saml:SP',
414-
'name' => array( //Name required for AttributeConsumingService-element.
418+
'name' => array( // Name required for AttributeConsumingService-element.
415419
'en' => 'Example service',
416420
'no' => 'Eksempeltjeneste',
417421
),
418422
'attributes' => array(
419423
'eduPersonPrincipalName',
420424
'mail',
425+
// Specify friendly names for these attributes:
426+
'sn' => 'urn:oid:2.5.4.4',
427+
'givenName' => 'urn:oid:2.5.4.42',
421428
)
422429
'attributes.required' => array (
423430
'eduPersonPrincipalName',

0 commit comments

Comments
 (0)