From 2a62c4d976994daebe98bc90e6e1031c24ffa073 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 8 Jul 2021 16:14:38 -0500 Subject: [PATCH] Fix NamespaceHttpInterceptUrlTests --- .../web/configurers/NamespaceHttpInterceptUrlTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/NamespaceHttpInterceptUrlTests.java b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/NamespaceHttpInterceptUrlTests.java index 607cda3d0f..43ac5eb135 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/NamespaceHttpInterceptUrlTests.java +++ b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/NamespaceHttpInterceptUrlTests.java @@ -121,12 +121,12 @@ HttpMethod.POST, "/admin/post", "/admin/another-post/**").hasRole("ADMIN") .antMatchers("/signup").permitAll() .anyRequest().hasRole("USER") .and() - .requiresChannel().antMatchers( + .requiresChannel().antMatchers("/login", "/secured/**") // NOTE: channel security is configured separately of authorization (i.e. intercept-url@access // the line below is similar to intercept-url@requires-channel="https": // //" requires-channel="https"/> -"/login", "/secured/**").requiresSecure().anyRequest()..requiresInsecure(); + .requiresSecure().anyRequest().requiresInsecure(); // @formatter:on }