You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `OAuth2AuthorizedClientManager` is responsible for the overall management of `OAuth2AuthorizedClient`(s).
208
+
209
+
The primary responsibilities include:
210
+
211
+
* Authorizing (or re-authorizing) an OAuth 2.0 Client, using an `OAuth2AuthorizedClientProvider`.
212
+
* Delegating the persistence of an `OAuth2AuthorizedClient`, typically using an `OAuth2AuthorizedClientService` or `OAuth2AuthorizedClientRepository`.
213
+
214
+
An `OAuth2AuthorizedClientProvider` implements a strategy for authorizing (or re-authorizing) an OAuth 2.0 Client.
215
+
Implementations will typically implement an authorization grant type, eg. `authorization_code`, `client_credentials`, etc.
216
+
217
+
The default implementation of `OAuth2AuthorizedClientManager` is `DefaultOAuth2AuthorizedClientManager`, which is associated with an `OAuth2AuthorizedClientProvider` that may support multiple authorization grant types using a delegation-based composite.
218
+
The `OAuth2AuthorizedClientProviderBuilder` may be used to configure and build the delegation-based composite.
219
+
220
+
The following code shows an example of how to configure and build an `OAuth2AuthorizedClientProvider` composite that provides support for the `authorization_code`, `refresh_token`, `client_credentials` and `password` authorization grant types:
221
+
222
+
[source,java]
223
+
----
224
+
@Bean
225
+
public OAuth2AuthorizedClientManager authorizedClientManager(
0 commit comments