Skip to content
Snippets Groups Projects
Commit e119303e authored by Jaime Perez's avatar Jaime Perez
Browse files

Document the new feature implemented by Andrea Biancini to add friendly names...

Document the new feature implemented by Andrea Biancini to add friendly names to attributes in the SP's metadata. Solves issue #60.
parent 1ad2fd28
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,10 @@ Options ...@@ -99,6 +99,10 @@ Options
: The attributes will be added without a `NameFormat` by default. : The attributes will be added without a `NameFormat` by default.
Use the `attributes.NameFormat` option to specify the `NameFormat` for the attributes. Use the `attributes.NameFormat` option to specify the `NameFormat` for the attributes.
: An associative array can be used, mixing both elements with and without keys. When a key is
specified for an element of the array, it will be used as the friendly name of the attribute
in the generated metadata.
: *Note*: This list will only be added to the metadata if the `name`-option is also specified. : *Note*: This list will only be added to the metadata if the `name`-option is also specified.
`attributes.NameFormat` `attributes.NameFormat`
...@@ -411,13 +415,16 @@ Here we will list some examples for this authentication source. ...@@ -411,13 +415,16 @@ Here we will list some examples for this authentication source.
'example-attributes => array( 'example-attributes => array(
'saml:SP', 'saml:SP',
'name' => array( //Name required for AttributeConsumingService-element. 'name' => array( // Name required for AttributeConsumingService-element.
'en' => 'Example service', 'en' => 'Example service',
'no' => 'Eksempeltjeneste', 'no' => 'Eksempeltjeneste',
), ),
'attributes' => array( 'attributes' => array(
'eduPersonPrincipalName', 'eduPersonPrincipalName',
'mail', 'mail',
// Specify friendly names for these attributes:
'sn' => 'urn:oid:2.5.4.4',
'givenName' => 'urn:oid:2.5.4.42',
) )
'attributes.required' => array ( 'attributes.required' => array (
'eduPersonPrincipalName', 'eduPersonPrincipalName',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment