|
@@ -21,9 +21,6 @@ import org.springframework.security.config.web.server.ServerHttpSecurity;
|
|
|
import org.springframework.security.core.userdetails.MapReactiveUserDetailsService;
|
|
|
import org.springframework.security.core.userdetails.User;
|
|
|
import org.springframework.security.core.userdetails.UserDetails;
|
|
|
-import org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientService;
|
|
|
-import org.springframework.security.oauth2.client.web.server.AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository;
|
|
|
-import org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository;
|
|
|
import org.springframework.security.web.server.SecurityWebFilterChain;
|
|
|
|
|
|
/**
|
|
@@ -47,11 +44,6 @@ public class SecurityConfig {
|
|
|
return http.build();
|
|
|
}
|
|
|
|
|
|
- @Bean
|
|
|
- ServerOAuth2AuthorizedClientRepository authorizedClientRepository(ReactiveOAuth2AuthorizedClientService authorizedClientService) {
|
|
|
- return new AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository(authorizedClientService);
|
|
|
- }
|
|
|
-
|
|
|
@Bean
|
|
|
MapReactiveUserDetailsService userDetailsService() {
|
|
|
UserDetails userDetails = User.withDefaultPasswordEncoder()
|