You can read the SibL Shibboleth attributes sent by IdP using the Request.ServerVariables object :
string server = Request.ServerVariables["HTTP_FIRSTNAME"];
See this one if you want to list and print all attributes in a session.
Remember to configure the Shibboleth attribute-map.xml to handle custom attributes that your IdP can send:
<Attribute name="firstname" id="firstname" nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"> <AttributeDecoder xsi:type="StringAttributeDecoder"/> </Attribute>
zerologiko
source share