I have successfully configured simpleSAMLphp so that it authenticates via the Test Shib IDP (https://www.testshib.org/).
Test Shib returns the following attributes:
- urn:oid:0.9.2342.19200300.100.1.1
- urn:oid:1.3.6.1.4.1.5923.1.1.1.1
- urn:oid:1.3.6.1.4.1.5923.1.1.1.6
- urn:oid:2.5.4.4
- urn:oid:1.3.6.1.4.1.5923.1.1.1.9
- urn:oid:2.5.4.42
- urn:oid:1.3.6.1.4.1.5923.1.1.1.7
- urn:oid:2.5.4.3
- urn:oid:1.3.6.1.4.1.5923.1.1.1.10
- urn:oid:2.5.4.20
I would like to map these attributes to friendly names. Can anyone give me some pointers as to how to do that?
The default-sp example in authsources.php has the following:
/*
* The attributes parameter must contain an array of desired attributes by the SP.
* The attributes can be expressed as an array of names or as an associative array
* in the form of 'friendlyName' => 'name'.
* The metadata will then be created as follows:
* <md:RequestedAttribute FriendlyName="friendlyName" Name="name" />
*/
/*'attributes' => array(
'attrname' => 'urn:oid:x.x.x.x',
),*/
But setting
'attributes' => array('myTestValue' => 'urn:oid:0.9.2342.19200300.100.1.1'),
has no effect.
Any help will be very gratefully received!