cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Stettler (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4082) Wrong realm calculation for relying party applications deployed in root context
Date Thu, 02 Feb 2012 13:11:53 GMT
Wrong realm calculation for relying party applications deployed in root context
-------------------------------------------------------------------------------

                 Key: CXF-4082
                 URL: https://issues.apache.org/jira/browse/CXF-4082
             Project: CXF
          Issue Type: Bug
          Components: Services
         Environment: Tomcat 7.0.16
Fediz Tomcat Plugin 0.6-SNAPSHOT
            Reporter: Christian Stettler


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.

{code}
String requestUrl = request.getRequestURL().toString();
int ctxIn = requestUrl.indexOf(contextPath);
String realm = requestUrl.substring(0, ctxIn + contextPath.length() + 1);
{code}

The realm is wrongly calculated as "h":

https://localhost:9443/idp/?wa=wsignin1.0&wreply=http%3A%2F%2Flocalhost%3A8080%2Fsecure%2Ftest.html&wtrealm=h

Deploying the application in another context and adjusting the realm definition in RPClaims.xml
helps.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message