From 1aadbb2f4da5eea04b2b0e5c78ae0f36f3862664 Mon Sep 17 00:00:00 2001 From: Eleftheria Stein Date: Mon, 11 May 2020 16:58:09 -0400 Subject: [PATCH] Remove "/path/**/other" patterns in tests Fixes gh-8513 --- .../config/web/server/OAuth2ResourceServerSpecTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/src/test/java/org/springframework/security/config/web/server/OAuth2ResourceServerSpecTests.java b/config/src/test/java/org/springframework/security/config/web/server/OAuth2ResourceServerSpecTests.java index b059c00880..943fe62d71 100644 --- a/config/src/test/java/org/springframework/security/config/web/server/OAuth2ResourceServerSpecTests.java +++ b/config/src/test/java/org/springframework/security/config/web/server/OAuth2ResourceServerSpecTests.java @@ -698,7 +698,7 @@ public class OAuth2ResourceServerSpecTests { // @formatter:off http .authorizeExchange() - .pathMatchers("/**/message/**").hasAnyAuthority("SCOPE_message:read") + .pathMatchers("/*/message/**").hasAnyAuthority("SCOPE_message:read") .and() .oauth2ResourceServer() .authenticationManagerResolver(authenticationManagerResolver());