Skip to content

Commit

Permalink
Polish gh-10479
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrandja committed Nov 12, 2021
1 parent f0da370 commit 4f18572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/reactive/oauth2/login/core.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4f18572

Please sign in to comment.