diff --git a/services/src/main/java/org/keycloak/protocol/oidc/endpoints/AuthorizationEndpoint.java b/services/src/main/java/org/keycloak/protocol/oidc/endpoints/AuthorizationEndpoint.java index c9b4079744..c1e847a937 100755 --- a/services/src/main/java/org/keycloak/protocol/oidc/endpoints/AuthorizationEndpoint.java +++ b/services/src/main/java/org/keycloak/protocol/oidc/endpoints/AuthorizationEndpoint.java @@ -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); } diff --git a/services/src/main/java/org/keycloak/protocol/oidc/utils/OIDCResponseType.java b/services/src/main/java/org/keycloak/protocol/oidc/utils/OIDCResponseType.java index e423dc9443..585a357713 100644 --- a/services/src/main/java/org/keycloak/protocol/oidc/utils/OIDCResponseType.java +++ b/services/src/main/java/org/keycloak/protocol/oidc/utils/OIDCResponseType.java @@ -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"); } }