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 release of Spring Security 5.2.0.RC1 introduced the new interfaces OAuth2AuthorizedClientManager and OAuth2AuthorizedClientProvider, which provide core OAuth 2.0 Client features around realizing Authorization Grant's and the management of OAuth2AuthorizedClient's. The reactive counterpart is ReactiveOAuth2AuthorizedClientManager and ReactiveOAuth2AuthorizedClientProvider.
Given this, it would be ideal if Boot could auto-configure the default implementations as @Bean's.
@jgrandja and I discussed this today. I'm not convinced that we should add a OAuth2AuthorizedClientManager to Boot's auto-config, the main reasons being:
ServletOAuth2AuthorizedClientExchangeFilterFunction and ServerOAuth2AuthorizedClientExchangeFilterFunction are already configured to use a DefaultOAuth2AuthorizedClientManager (if one isn't provided using the new constructor). This bean wouldn't provide anything additional if WebClient is used.
Most users will not need all the grant types configured in the sample and will most likely provide their own OAuth2AuthorizedClientManager.
Configuring a DefaultOAuth2AuthorizedClientManager for users who need it is straightforward and will avoid an unused bean in the context for cases that do not need it.
Let's see what the rest of the team and Rob think.
The release of Spring Security 5.2.0.RC1 introduced the new interfaces
OAuth2AuthorizedClientManager
andOAuth2AuthorizedClientProvider
, which provide core OAuth 2.0 Client features around realizing Authorization Grant's and the management ofOAuth2AuthorizedClient
's. The reactive counterpart isReactiveOAuth2AuthorizedClientManager
andReactiveOAuth2AuthorizedClientProvider
.Given this, it would be ideal if Boot could auto-configure the default implementations as
@Bean
's.Here is a sample configuration for Servlet and Reactive.
For additional details around these new interfaces please see this comment.
The text was updated successfully, but these errors were encountered: