From 6d0369647b9fb903ca1a13de0f3f4c04584819ed Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 30 Jul 2018 12:07:51 -0500 Subject: [PATCH] Add OAuth2LoginSpec.and() Fixes: gh-5609 --- .../security/config/web/server/ServerHttpSecurity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java index e754f431cc..dde83846af 100644 --- a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java +++ b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java @@ -377,6 +377,15 @@ public class ServerHttpSecurity { return this; } + /** + * Allows method chaining to continue configuring the {@link ServerHttpSecurity} + * @return the {@link ServerHttpSecurity} to continue configuring + */ + public ServerHttpSecurity and() { + return ServerHttpSecurity.this; + } + + protected void configure(ServerHttpSecurity http) { ReactiveClientRegistrationRepository clientRegistrationRepository = getClientRegistrationRepository(); ReactiveOAuth2AuthorizedClientService authorizedClientService = getAuthorizedClientService();