Closed
Description
We should allow for a @Bean
of type OAuth2AccessTokenResponseClient<OAuth2ClientCredentialsGrantRequest>
to be discovered by OAuth2ClientConfiguration
. This would than be associated with OAuth2AuthorizedClientArgumentResolver.setClientCredentialsTokenResponseClient()
.
Ultimately, this will allow the user to register a DefaultClientCredentialsTokenResponseClient
@Bean
with a configured RestOperations
and/or Converter<OAuth2ClientCredentialsGrantRequest, RequestEntity<?>>
.