Redirect after login from InfoMap or AuthSvc Policy

If you’d like to redirect after the completion of the login process from an InfoMap, you can set the equivalent of the EAI redirect header:

eai-redir-url-header = am-eai-redir-url

This can be done through the setting of the response token attribute:

context.set(Scope.SESSION, “urn:ibm:security:asf:response:token:attributes”, “itfim_override_targeturl_attr”, "/someURL");

There is a technote showing this in other mapping rules here:

http://www-01.ibm.com/support/docview.wss?uid=swg21676244

You can set it in a similar fashion in the AuthSvcCred Mapping rule (the mapping rule that fires after the completion of an Authentication Policy) using the STSUU.

var targetUrl = new java.lang.String("http://www.example.com/");
 var targetUrlAttr = new Attribute("itfim_override_targeturl_attr", "urn:ibm:names:ITFIM:5.1:accessmanager", targetUrl);
 stsuu.addAttribute(targetUrlAttr);

Comments are closed.

WordPress.com.

Up ↑

%d bloggers like this: