Displaying a simple error page from a flow
Wessel, Keith
kwessel at illinois.edu
Fri Dec 9 16:41:42 EST 2016
Got it. I'll keep this in mind with my future coding.
Thank you again,
Keith
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Friday, December 09, 2016 3:17 PM
To: Shib Users <users at shibboleth.net>
Subject: Re: Displaying a simple error page from a flow
On 12/9/16, 4:12 PM, "users on behalf of Wessel, Keith" <users-bounces at shibboleth.net on behalf of kwessel at illinois.edu> wrote:
> Ah. Thank you. So the setPrincipal method simply needs to know what method to call to set the principal when it actually
> goes to do the attribute resolving. Makes sense. And the apply method was the only thing I was missing.
The setPrincipal method takes a String, and the Function in question returns one, you just have to call it.
Functions are just classes with an apply() method that take an input and return an output. Our functions almost always take a ProfileRequestContext as input. The return types vary by function.
The ProfileRequestContext object is populated in scripts as a variable called "input".
So if you have a Function bean, you call bean.apply(input) to get it to run, most of the time.
Predicates/conditions are the same, they're just like functions that return boolean.
-- Scott
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list