Skip to content

Commit 80a0ade

Browse files
committed
Merge branch '6.1.x'
Closes gh-13499
2 parents 30d09c5 + 8642a17 commit 80a0ade

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/AbstractWebClientReactiveOAuth2AccessTokenResponseClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ private void validateClientAuthenticationMethod(T grantRequest) {
115115
if (!supportedClientAuthenticationMethod) {
116116
throw new IllegalArgumentException(String.format(
117117
"This class supports `client_secret_basic`, `client_secret_post`, and `none` by default. Client [%s] is using [%s] instead. Please use a supported client authentication method, or use `set/addParametersConverter` or `set/addHeadersConverter` to supply an instance that supports [%s].",
118-
clientRegistration.getRegistrationId(), clientAuthenticationMethod, clientAuthenticationMethod));
118+
clientRegistration.getRegistrationId(), clientAuthenticationMethod.getValue(),
119+
clientAuthenticationMethod.getValue()));
119120
}
120121
}
121122

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/ClientAuthenticationMethodValidatingRequestEntityConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public RequestEntity<?> convert(T grantRequest) {
4141
|| clientAuthenticationMethod.equals(ClientAuthenticationMethod.CLIENT_SECRET_POST);
4242
Assert.isTrue(supportedClientAuthenticationMethod, () -> String.format(
4343
"This class supports `client_secret_basic`, `client_secret_post`, and `none` by default. Client [%s] is using [%s] instead. Please use a supported client authentication method, or use `setRequestEntityConverter` to supply an instance that supports [%s].",
44-
registrationId, clientAuthenticationMethod, clientAuthenticationMethod));
44+
registrationId, clientAuthenticationMethod.getValue(), clientAuthenticationMethod.getValue()));
4545
return this.delegate.convert(grantRequest);
4646
}
4747

0 commit comments

Comments
 (0)