Browse Source

Add OAuth2LoginSpec.and()

Fixes: gh-5609
Rob Winch 7 years ago
parent
commit
6d0369647b

+ 9 - 0
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();