KEYCLOAK-13102 Remove error log message on invalid response_type

This commit is contained in:
stianst 2020-03-03 07:07:34 +01:00 committed by Stian Thorgersen
parent 701fb06de1
commit b39b84c5dc
2 changed files with 1 additions and 2 deletions

View file

@ -239,7 +239,6 @@ public class AuthorizationEndpoint extends AuthorizationEndpointBase {
action = Action.CODE;
}
} catch (IllegalArgumentException iae) {
logger.error(iae.getMessage());
event.error(Errors.INVALID_REQUEST);
return redirectErrorToClient(OIDCResponseMode.QUERY, OAuthErrorException.UNSUPPORTED_RESPONSE_TYPE, null);
}

View file

@ -54,7 +54,7 @@ public class OIDCResponseType {
if (ALLOWED_RESPONSE_TYPES.contains(current)) {
allowedTypes.add(current);
} else {
throw new IllegalArgumentException("Unsupported response_type: " + responseTypeParam);
throw new IllegalArgumentException("Unsupported response_type");
}
}