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