Referencing entity attributes in the terms of use key bean
Cantor, Scott
cantor.2 at osu.edu
Mon Sep 14 21:19:07 UTC 2020
On 9/14/20, 5:13 PM, "users on behalf of Wessel, Keith" <users-bounces at shibboleth.net on behalf of kwessel at illinois.edu> wrote:
> Well, duh. Thanks, Scott. I should have known that I couldn't get a condition out of a bean that was simply defining the
> entity tag and value, not testing it.
No, the problem is just the input types. Most of the supplied condition classes run against ProfileRequestContext and most of the condition properties use that input type.
The EntityAttributesPredicate operates directly on an EntityDescriptor (metadata). Using it in the IdP requires an adapter, to turn the ProfileRequestContext into an EntityDescriptor, i.e. to look up the metadata where it lives in the request.
All of that indirection is pre-wired inside the shibboleth.Conditions.EntityDescriptor bean, which adapts the input and then runs the EntityDescriptor-based condition you give it.
-- Scott
More information about the users
mailing list