@Override
    public boolean supports(final WebContext context) throws Throwable {
        if (preValidate(context)) {
            val responseType = requestParameterResolver.resolveRequestParameter(context, OAuth20Constants.RESPONSE_TYPE)
                .map(String::valueOf)
                .orElse(StringUtils.EMPTY);
            LOGGER.debug("Requested response type is [{}]", responseType);
            return getSupportedResponseTypes()
                .stream()
                .anyMatch(allowedType -> OAuth20Utils.isResponseType(responseType, allowedType));
        }
        return false;
    }
This is {@link OAuth20AuthorizationCodeResponseTypeAuthorizationRequestValidator}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/validator/authorization/OAuth20AuthorizationCodeResponseTypeAuthorizationRequestValidator.java