servlet access of Attributes via Server Variables?

Woolf, Carl Carl_Woolf at hms.harvard.edu
Sat Jul 9 19:04:04 UTC 2022


Thanks Nate, that does help! I will work on this approach next week….
Best regards, - Carl

From: users <users-bounces at shibboleth.net> on behalf of Nate Klingenstein <ndk at signet.id>
Date: Saturday, July 9, 2022 at 1:40 PM
To: Shib Users <users at shibboleth.net>
Subject: RE: servlet access of Attributes via Server Variables?
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
--
For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20220709/a5dc3e72/attachment.htm>


More information about the users mailing list