Class OpenSSOAgentImpl

    • Constructor Detail

      • OpenSSOAgentImpl

        public OpenSSOAgentImpl​(org.exoplatform.container.xml.InitParams params)
    • Method Detail

      • validateTicket

        public void validateTicket​(javax.servlet.http.HttpServletRequest httpRequest,
                                   javax.servlet.http.HttpServletResponse httpResponse)
                            throws Exception
        Specified by:
        validateTicket in interface OpenSSOAgent
        Throws:
        Exception
      • tryMessageFromCDC

        protected boolean tryMessageFromCDC​(javax.servlet.http.HttpServletRequest httpRequest,
                                            javax.servlet.http.HttpServletResponse httpResponse)
                                     throws IOException
        This method is useful only for Cross-Domain (CD) authentication scenario when GateIn and OpenSSO are in different DNS domains and they can't share cookie. It performs:
        • Parse and validate message from OpenSSO CDCServlet.
        • Use ssoToken from parsed message and establish OpenSSO cookie iPlanetDirectoryPro
        • Redirects to InitiateLoginFilter but with cookie established. So in next request, we can perform agent validation against OpenSSO server
        Parameters:
        httpRequest -
        httpResponse -
        Returns:
        true if parameter LARES with message from CDC is present in HttpServletRequest
        Throws:
        IOException
      • validateCDMessageContext

        protected void validateCDMessageContext​(javax.servlet.http.HttpServletRequest httpRequest,
                                                org.gatein.sso.agent.opensso.CDMessageContext context)
        Validation of various criterias in CDMessageContext
        Parameters:
        httpRequest -
        context -