Looking up Entity Category's
Rhian Resnick
rresnick at fau.edu
Tue Jul 18 23:46:22 EDT 2017
Gotcha we did create a similar method to access the same type of metadata in velocity. Likely will do something similar.
Thanks for the input.
Rhian Resnick
Assistant Director Middleware and HPC
Office of Information Technology
Florida Atlantic University
777 Glades Road, CM22, Rm 173B
Boca Raton, FL 33431
Phone 561.297.2647
Fax 561.297.0222
[image] <https://hpc.fau.edu/wp-content/uploads/2015/01/image.jpg>
________________________________
From: users <users-bounces at shibboleth.net> on behalf of Cantor, Scott <cantor.2 at osu.edu>
Sent: Tuesday, July 18, 2017 12:04 PM
To: Shib Users
Subject: Re: Looking up Entity Category's
On 7/18/17, 11:55 AM, "users on behalf of Rhian Resnick" <users-bounces at shibboleth.net on behalf of rresnick at fau.edu> wrote:
> Spinning off my previous conversation is it possible to retrieve the value of an entity category in a scripted attribute? I haven't
> found reference to these in javascript within the documentation.
They're inside the metadata, which is below a complex structure of contexts that's accessible via RelyingPartyContext.getRelyingPartyContextTree. That returns a SAMLPeerEntityContext, below which is normally a SAMLMetadataContext that will contain the metadata for the SP. From there it's a process of navigating the metadata structure to the extension content and the objects implementing that extension.
There are various functions and classes that illustrate some of that, mostly org.opensaml.saml.common.profile.logic.EntityAttributesPredicate for the final "mile".
Realistically if I was doing it, I'd be wiring up Spring objects to actually drive an instance of EntityAttributesPredicate and run it against the EntityDescriptor so I didn't have to reimplement that in a script.
-- Scott
--
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/20170719/6c26e4c3/attachment-0001.html>
More information about the users
mailing list