Polish gh-10479

This commit is contained in:
Joe Grandja 2021-11-12 15:08:11 -05:00
parent 939a5581f2
commit eceb9ed479
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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() {