We are trying to use TAI interceptor, same application working fine with single node cluster but in case of multi node cluster it is not getting invoke the TAI instead it is prompting for Default realm credentials.
Here is the isTargetInterceptor method....
public boolean isTargetInterceptor(HttpServletRequest arg0)throws WebTrustAssociationException {
Enumeration enum1 = arg0.getAttributeNames();
while(enum1.hasMoreElements()){
String str=(String)enum1.nextElement();
logger.log("Request Attributes :"+str);
logger.log("Attribute value for "+str+"is :"+(String)arg0.getAttribute(str));
}
logger.log("Authentication Custom TAI [URI]:"+arg0.getRequestURI());
String strArtifact = arg0.getParameter("samlartifact");
logger.log(" isTargetInterceptor Receive user saml is: " + strArtifact);
if (strArtifact == null)
return false;
else
return true;}
and requested url format is
https://hostname:443/NASTAIClient/loginServlet?samlartifact=artifactstring
even if I am giving with out port number also its working in WAS(single node) and this is the actual format we are using in Not working WAS(multi node)
https://hostname/NASTAIClient/loginServlet?samlartifact=artifactstring
If we given the proper credentials for default realm, It is creating Ltpa cookies in browser.
And so on its creating WS Subject. But TAI interceptor not getting invoked. We compared the different level security settings of working(single cluster) WAS and non-working(multi cluster) WAS. We didn't found any particular reason for the why TAI not getting invoked instead why Default realm is prompting