eugenp / tutorials

Just Announced - "Learn Spring Security OAuth":

Home Page:http://bit.ly/github-lsso

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ISSUE] `UnAuthenticatedServerOAuth2AuthorizedClientRepository` is deprecated

GCHQDeveloper926 opened this issue · comments

Article and Module Links

https://www.baeldung.com/spring-webclient-oauth2

https://github.com/eugenp/tutorials/blob/master/spring-reactive-modules/spring-reactive-oauth/src/main/java/com/baeldung/webclient/clientcredentials/configuration/WebClientConfig.java

Describe the Issue
UnAuthenticatedServerOAuth2AuthorizedClientRepository is deprecated and is no longer the preferred way to create an OAuth filter. Suggest switching to AuthorizedClientServiceReactiveOAuth2AuthorizedClientManager and ServerOAuth2AuthorizedClientExchangeFilterFunction

To Reproduce
Steps to reproduce the behavior:

  1. Check out the class used here and read the deprecation message.

Happy to provide a PR if suitable, to update this particular tutorial

Hey, @GCHQDeveloper926.

Thanks for the feedback. We'll look into this.

This issue will remain open until then.