Accessing user attributes in login flow views

Cantor, Scott cantor.2 at osu.edu
Sun Jul 22 12:30:24 EDT 2018


On 7/20/18, 4:30 PM, "Ian Bobbitt" <ibobbitt at globalnoc.iu.edu> wrote:

> Thanks. That's the path I was going down, until I got stuck. I was loosely following the "Programmatically Selecting
> Flows" MFA flow example[1], but wasn't sure how to get the attributes to actually resolve
> ("resCtx.resolveAttributes(custom)" where "custom" is an object-ref to "shibboleth.AttributeResolverService")

I doubt that would be very easy to do inside a template, you should resolve attributes before that were to render.

>  and how to
> do the actual value check ("valueType =  Java.type("net.shibboleth.idp.attribute.StringAttributeValue");" and "if
> (attribute != null && attribute.getValues().contains(new valueType("Flow1"))) { ... }").

You would have to do value checks by just looping and searching for a match, probably. Or using some really ugly tricks like creating objects through reflection perhaps.

-- Scott




More information about the users mailing list