flowExecutionUrl in AbstractAuthenticationAction

Scott Koranda skoranda at gmail.com
Tue Sep 27 09:08:43 EDT 2016


Hi,

I am building a custom authentication flow for IdP 3.2.1.

My flow has this as the first element:

<action-state id="InitializeMyContext">
    <evaluate expression="InitializeMyContext" />
    <evaluate expression="'proceed'" />

    <transition on="proceed" to="RedirectSomewhere" >
    </transition>
</action-state>

InitializeMyContext implements AbstractAuthenticationAction. 

Later in 

<view-state id="RedirectSomewhere" view="externalRedirect:https://somewhere">  

the browser will be redirected and then come back to complete
the flow. 

At initialization my flow needs to know the callback URL to use.

In the doExecute() method for InitializeMyContext I have

SpringRequestContext springRequestContext = (SpringRequestContext) profileRequestContext.getSubcontext(SpringRequestContext.class);
RequestContext requestContext = springRequestContext.getRequestContext();
String callbackUrl = requestContext.getFlowExecutionUrl();

I find, however, that callbackUrl is always null. I was expecting 
something like

https://HOSTNAME/idp/profile/SAML2/Redirect/SSO?execution=e1s1&_eventId=proceed

What am I missing or not understanding about the notion of the flow execution
URL?

Thanks,

Scott K


More information about the dev mailing list