Details
Description
If the relying party application is deployed in the root context of Tomcat, the FederationAuthenticator is not able to correctly calculate the realm value used for the "wtrealm" request parameter of the IDP.
String requestUrl = request.getRequestURL().toString(); int ctxIn = requestUrl.indexOf(contextPath); String realm = requestUrl.substring(0, ctxIn + contextPath.length() + 1);
The realm is wrongly calculated as "h":
Deploying the application in another context and adjusting the realm definition in RPClaims.xml helps.