Class HTTPSessionBasedOIDCProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleOIDCCallback​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Processes the OIDC callback response and extract the authorization code, builds a token request, sends the token request and parse the token response where the authenticated user info and tokens would be added to the SessionContext object and written into the available http session.
      void logout​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Builds a logout request and redirects.
      void sendForLogin​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Builds an authentication request and redirects.
    • Method Detail

      • sendForLogin

        public void sendForLogin​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
                          throws SSOAgentException
        Builds an authentication request and redirects. Information regarding the authentication session would be retrieved via RequestContext object and then, would be written to the http session.
        Parameters:
        request - Incoming HttpServletRequest.
        response - Outgoing HttpServletResponse.
        Throws:
        SSOAgentException
      • handleOIDCCallback

        public void handleOIDCCallback​(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                throws SSOAgentException
        Processes the OIDC callback response and extract the authorization code, builds a token request, sends the token request and parse the token response where the authenticated user info and tokens would be added to the SessionContext object and written into the available http session.
        Parameters:
        request - Incoming HttpServletRequest.
        response - Outgoing HttpServletResponse.
        Throws:
        SSOAgentException - Upon failed authentication.
      • logout

        public void logout​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws SSOAgentException
        Builds a logout request and redirects.
        Parameters:
        request - Incoming HttpServletRequest.
        response - Outgoing HttpServletResponse
        Throws:
        SSOAgentException