accessing user attribute in view
Vonblohn, Kyle
kvonbloh at bloomu.edu
Thu Aug 31 16:44:45 EDT 2017
Thanks Scott, that helped a lot. I think I'm almost there, but I can't access the javadocs for shibboleth (503 errors) Any Idea when they'll be back up?
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Thursday, August 31, 2017 3:54 PM
To: Shib Users <users at shibboleth.net>
Subject: RE: accessing user attribute in view
> I'm having trouble
> trying to figure out how to navigate the tree and pull the attribute
> value. I have never attempted this before and can't find any
> documentation on how to do this (or maybe I'm not looking in the right places).
Many of the wiki examples doing various things include context tree access, but basically you need the Javadocs for the BaseContext class in OpenSAML, where you'll see the generic navigation methods available, principally getSubcontext. It takes a class type or to be more scripting friendly it can take the string name of the class type, so you just call it with the full class name of the subcontext type you want to access, check for null, and move on from there. The hard part is what I think you already have, the structure layout you need to navigate.
-- Scott
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list