Retrieve NameID
Peter Schober
peter.schober at univie.ac.at
Fri Jun 29 10:15:49 EDT 2018
* George Glessner <gglessner at serviceexpress.com> [2018-06-29 15:40]:
> The NameID is set as the username from our IDP. I am able to access
> it on our php side with simpleSAMLphp with
> get_object_vars($this->session->getAuthData('saml:sp:NameID'))['value']
> since it is passed over. I would like to be able to do something
> similar with Shibboleth if possible so I can set a variable to be
> equal to the result.
NameIDs are treated like Attributes in the Shib SP, so you'd need map
the desired format in your attribute-map.xml
https://wiki.shibboleth.net/confluence/display/SHIB2/Configuration
Middle column: "Native Service Provider (SP)"
-> "Use a New Attribute"
https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPAddAttribute
-peter
More information about the users
mailing list