Simplify registering a custom (Reactive)OAuth2AuthorizedClientProvider #13181
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
To specify a custom
OAuth2AuthorizedClientProvider
requires specifying a number of other things as well:It would be nice to be able to focus only on the provider itself, like so:
It seems like this is already the pattern that is encouraged by the fact that
OAuth2ClientConfiguration
looks for the other components ofOAuth2AuthorizedClientManager
as beans.I think it would be good to further simplify this configuration by also deprecating the lookup of
OAuth2AccessTokenResponseClient
for client credentials since this is a couple of layers of configuration deep. Instead, I think it would be better for folks to do:Or if more are needed then:
The text was updated successfully, but these errors were encountered: