public static boolean isAccessTokenRequest(final WebContext webContext) {
        return (Boolean) webContext.getRequestAttribute(OAuth20Constants.REQUEST_ATTRIBUTE_ACCESS_TOKEN_REQUEST).orElse(false);
    }
Is access token request?.

@param webContext the web context
@return true or false
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java