How do I read the attributes from my ASP .NET page?
On 11/4/11 12:05 AM, ssrip...@yahoo.com wrote:
> Brent,
> I did read that do. Still confused on why attrs show up on the session info page but not when I dump headers from my ASP.NET page. I am printing out ALL headers in my ASP.NET page.
I may be mis-remembering, but I think in the ASP.NET world, the Shib
headers don't show up in the enumeration or iteration that you get from
the request structure. You have to request them individually by name.
Have you tried that?
--
To unsubscribe from this list send an email to users-un...@shibboleth.net
Perhaps the path where you are attempting to read the attributes is not configured to require a Shibboleth session (or not even configured as session optional).
Look in your <RequestMap> in shibboleth2.xml.
From: users-...@shibboleth.net [mailto:users-...@shibboleth.net]
On Behalf Of Sridhar Sripathy
Sent: Friday, November 04, 2011 10:38 PM
To: us...@shibboleth.net
Subject: Re: how do I read attributes from headers??
I tried reading the attributes from headers using this format Request.ServerVariables["HTTP_ATTRNAME"] in and it still does not work.I can see that attrs are mapped correctly because I can see the attributes in the session summary page https://..../Shibboleth.sso/Session
>
>I tried reading the attributes from headers using this format
>Request.ServerVariables["HTTP_ATTRNAME"] in and it still does not work.
The documentation tells you that Request.Headers is the preferred API for
security reasons. Beyond that, if they're not there, the SP is not
configured to see your requests.
-- Scott