File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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',
You can’t perform that action at this time.
0 commit comments