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

i use spring security-oauth2-6.2.1.jar and be a error

githubanhduong opened this issue · comments

@bean
WebClient webClient(ReactiveClientRegistrationRepository clientRegistrations) {
ServerOAuth2AuthorizedClientExchangeFilterFunction oauth =
new ServerOAuth2AuthorizedClientExchangeFilterFunction(
clientRegistrations,
new UnAuthenticatedServerOAuth2AuthorizedClientRepository());
oauth.setDefaultClientRegistrationId("bael");
return WebClient.builder()
.filter(oauth)
.build();
}

UnAuthenticatedServerOAuth2AuthorizedClientRepository cannot be resolved to a type

Hey, @githubanhduong.

We're assuming this is the article you're referring to: UnAuthenticatedServerOAuth2AuthorizedClientRepository

This tutorial currently only works for Spring 5.

We have internal tasks to keep articles updated with Spring 6, but it might take a while.

This issue will remain open until then.

thank you