servlet access of Attributes via Server Variables?
Nate Klingenstein
ndk at signet.id
Sat Jul 9 17:39:57 UTC 2022
Carl,
> …myHttpRequest.getAttribute(“attributeName”)
For whatever you've named the HTTP request object and whatever you're mapping attribute names on the wire to behind the SP via attribute-map.xml, precisely that, yes.
If you're having trouble getting an attribute populated for some reason and things are being routed through the normal ACS mechanism, then it's possible that you don't have Shibboleth configured to protect the URL path that you're accessing. You can see all the attributes Shibboleth thinks it has for you by authenticating and then going to:
https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065334875/Session+Handler
You can of course also just dump all the attributes from myHttpRequest.
Hope this helps,
Nate
--------
Signet, Inc.
The Art of Access ®
https://www.signet.id
More information about the users
mailing list