Skip to content

Instantly share code, notes, and snippets.

@rj93
Last active January 24, 2021 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rj93/cb55a98f662ee5c413e0af30b77f2774 to your computer and use it in GitHub Desktop.
Save rj93/cb55a98f662ee5c413e0af30b77f2774 to your computer and use it in GitHub Desktop.
Reactive OAuth 2.0 Login Configuration
@Configuration
public class SecurityConfig {
@Bean
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
http
.authorizeExchange().anyExchange().authenticated()
.and()
.oauth2Login();
return http.build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment