diff --git a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java index 7193f90eb63..b7eb723b809 100644 --- a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java +++ b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java @@ -102,7 +102,7 @@ public boolean equals(Object obj) { return false; } ClientAuthenticationMethod that = (ClientAuthenticationMethod) obj; - return this.getValue().equalsIgnoreCase(that.getValue()); + return this.getValue().equals(that.getValue()); } @Override