소스 검색

Add OAuth2ClientSpec.and

Fixes: gh-5888
Rob Winch 7 년 전
부모
커밋
8a49c431c3
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java

+ 8 - 0
config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java

@@ -804,6 +804,14 @@ 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();
 			ServerOAuth2AuthorizedClientRepository authorizedClientRepository = getAuthorizedClientRepository();