* nate <
nram...@gmail.com> [2015-03-26 21:23]:
> Thanks for the reply. I checked the assertions getting back from IDP using
> SAML Tracer. I see the following response from Tracer. Why SimpleSAMLPhp is
> not grabbing these attributes?
Because there are no attributes there, as simple as that.
(Attributes come in <Attribute> elements, with <AttributeValue>
child elements. There are none.)
In case you're referring to the NameID sent, you can get that, too, as
per the documentation. SimpleSAMLphp home page -> Hosted SP
Configuration Reference -> search for "NameID":
https://simplesamlphp.org/docs/stable/saml:sp#section_3
"To retrieve these attributes, the application can use the
getAuthData()-function from the SP API."
Since per the docs you want "saml:sp:NameID" that makes it:
$nameid = $auth->getAuthData('saml:sp:NameID');
With $auth being an instance of your auth source object, as in
https://simplesamlphp.org/docs/stable/simplesamlphp-sp-api#section_1
> <Subject>
> <NameID
> Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient">
emaila...@company.com</NameID>
That NameID (either the value or the Format or both) is bogus and
illegal, of course. Clearly an email address is not a transient value.
(Cf.
https://en.wiktionary.org/wiki/transient )
If the Format is what is desired the valued needs to be different.
If the value is what is desired, the format needs to be set to
"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress".
-peter