WebFluxSecurityConfiguration configures oauth2Client() by default

Fixes gh-7470
This commit is contained in:
Joe Grandja 2019-09-27 10:04:19 -04:00
parent 08d2c93713
commit 5a67971375

View File

@ -114,7 +114,9 @@ class WebFluxSecurityConfiguration {
private static class OAuth2ClasspathGuard { private static class OAuth2ClasspathGuard {
static void configure(ApplicationContext context, ServerHttpSecurity http) { static void configure(ApplicationContext context, ServerHttpSecurity http) {
http.oauth2Login(); http
.oauth2Login().and()
.oauth2Client();
} }
static boolean shouldConfigure(ApplicationContext context) { static boolean shouldConfigure(ApplicationContext context) {