mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-29 08:12:14 +00:00
Polish gh-10479
This commit is contained in:
parent
939a5581f2
commit
eceb9ed479
@ -127,7 +127,7 @@ public class OAuth2LoginSecurityConfig {
|
||||
@Bean
|
||||
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
|
||||
http
|
||||
.exceptionHandling(exceptions -> exceptions
|
||||
.exceptionHandling(exceptionHandling -> exceptionHandling
|
||||
.authenticationEntryPoint(new RedirectServerAuthenticationEntryPoint("/login/oauth2"))
|
||||
)
|
||||
.oauth2Login(oauth2 -> oauth2
|
||||
|
@ -380,8 +380,8 @@ public class OAuth2LoginConfig {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public ClientRegistrationRepository clientRegistrationRepository() {
|
||||
return new InMemoryClientRegistrationRepository(this.googleClientRegistration());
|
||||
public ReactiveClientRegistrationRepository clientRegistrationRepository() {
|
||||
return new InMemoryReactiveClientRegistrationRepository(this.googleClientRegistration());
|
||||
}
|
||||
|
||||
private ClientRegistration googleClientRegistration() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user