Adding rpUIContext (and later a username) to error.vm
Cantor, Scott
cantor.2 at osu.edu
Sun Mar 5 16:18:49 EST 2017
On 3/5/17, 4:04 PM, "users on behalf of Cameron Kerr" <users-bounces at shibboleth.net on behalf of cameron.kerr at otago.ac.nz> wrote:
> Thanks, Scott. Any pointers as how to chase down this information myself? I looked at the Javadocs, but given your comment
> about it being specific to a flow, I'm guessing that will lead me astray, and I sbould be looking at the various -flow files?
If it's not documented then the information is only found in a combination of flow files, Spring files, and source code.
> What I _think_ you're saying is that I should have:
>
> #set ($rpContext = $profileRequestContext.getSubcontext("net.shibboleth.idp.profile.context.RelyingPartyContext"))
> #set ($authnContext = $profileRequestContext.getSubcontext("net.shibboleth.idp.authn.context.AuthenticationContext"))
> #set ($rpUIContext = $authnContext.getSubcontext("net.shibboleth.idp.ui.context.RelyingPartyUIContext"))
That's all positionally correct.
> Also relevant (and sorry, I forgot to include this before), this is IdP 3.2.1
rpUIContext is only set in that version if the login flow being run actually sets it, or in one of the other interceptor flows. You need to use 3.3.0 or you would have to do all the work yourself if it doesn't happen to be done already by a login flow running.
> Thanks for the clarification. Is this because the user has already been through those flows that my -flow file doesn't need to do
> the likes of SetRPUIInformation, such as is done in terms-of-use?
In 3.3.0, all the authn flow does it in one place, it's no longer in any of the downstream flows.
-- Scott
More information about the users
mailing list