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);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

WordPress.com.

Up ↑

%d bloggers like this: