Class OAuthRequestUtils

  • public final class OAuthRequestUtils
    extends Object
    Utility class for extracting information from OAuth requests.
    • Method Detail

      • isOAuthAccessAttempt

        public static boolean isOAuthAccessAttempt​(javax.servlet.http.HttpServletRequest request)
        Checks if the request is any form of OAuth request, either 2LO or 3LO. It is done by checking the request parameters.
        request - the request object.
        true if the request is an OAuth request.
      • isOauthTokenRequest

        public static boolean isOauthTokenRequest​(javax.servlet.http.HttpServletRequest request)
        The request path is accessing one of the token endpoints
        request - the request object
        true if the request is for an OAuth token.