Fix Client Authentication Method Error Message
Closes gh-13496
This commit is contained in:
parent
933b302979
commit
dbf0c66301
|
@ -115,7 +115,8 @@ public abstract class AbstractWebClientReactiveOAuth2AccessTokenResponseClient<T
|
|||
if (!supportedClientAuthenticationMethod) {
|
||||
throw new IllegalArgumentException(String.format(
|
||||
"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].",
|
||||
clientRegistration.getRegistrationId(), clientAuthenticationMethod, clientAuthenticationMethod));
|
||||
clientRegistration.getRegistrationId(), clientAuthenticationMethod.getValue(),
|
||||
clientAuthenticationMethod.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class ClientAuthenticationMethodValidatingRequestEntityConverter<T extends Abstr
|
|||
|| clientAuthenticationMethod.equals(ClientAuthenticationMethod.CLIENT_SECRET_POST);
|
||||
Assert.isTrue(supportedClientAuthenticationMethod, () -> String.format(
|
||||
"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].",
|
||||
registrationId, clientAuthenticationMethod, clientAuthenticationMethod));
|
||||
registrationId, clientAuthenticationMethod.getValue(), clientAuthenticationMethod.getValue()));
|
||||
return this.delegate.convert(grantRequest);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue