Class OIDCRequestResolver


  • public class OIDCRequestResolver
    extends Object
    OIDCRequestResolver is the class responsible for resolving requests based on the OIDCAgentConfig and the request parameters.

    OIDCRequestResolver verifies if:

    • The request is a URL to skip
    • The request is a Logout request
    • The request is an error
    • The request contains an authorization code response
    • The request is a callback response

    and returns boolean values.

    • Constructor Detail

      • OIDCRequestResolver

        public OIDCRequestResolver​(javax.servlet.http.HttpServletRequest request,
                                   OIDCAgentConfig oidcAgentConfig)
    • Method Detail

      • isError

        public boolean isError()
        Checks if the request contains a parameter, "error".
        Returns:
        True if the request contains an "error" parameter, false otherwise.
      • isAuthorizationCodeResponse

        public boolean isAuthorizationCodeResponse()
        Checks if the request is an Authorization Code response.
        Returns:
        True if the request is parsed as a valid Authorization response, false otherwise.
      • isLogoutURL

        public boolean isLogoutURL()
        Checks if the request is a logout request.
        Returns:
        True if the request ends with the logout URL configured in the OIDCAgentConfig, false otherwise.
      • isSkipURI

        public boolean isSkipURI()
        Checks if the request is a URI to skip.
        Returns:
        True if the request is a URL configured in the OIDCAgentConfig as skipURIs, false otherwise.
      • isLogout

        public boolean isLogout()
        Checks if the request contains is_logout parameter.
        Returns:
        True if the request contains a parameter called is_logout and its value is true, false otherwise.
      • isCallbackResponse

        public boolean isCallbackResponse()
        Checks if the request is a callback response.
        Returns:
        True if the request contains the path of the callback URL configured in the OIDCAgentConfig, false otherwise.