@Override public void validateRequiredParameters(HttpServletRequest request) throws OAuthProblemException { super.validateRequiredParameters(request); String clientID = request.getParameter(CLIENT_ID); // For code token response type, the scope parameter should contain 'openid' as one of the scopes. String openIdScope = request.getParameter(SCOPE); if (StringUtils.isBlank(openIdScope) || !isContainOIDCScope(openIdScope)) { throw OAuthProblemException.error(OAuthError.TokenResponse.INVALID_REQUEST) .description("Request with \'client_id\' = \'" + clientID + "\' has " + "\'response_type\' for \'hybrid flow\'; but \'openid\' scope not found."); } }