Skip to content

Commit 1aadbb2

Browse files
committed
Remove "/path/**/other" patterns in tests
Fixes gh-8513
1 parent fbd3cfa commit 1aadbb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/src/test/java/org/springframework/security/config/web/server/OAuth2ResourceServerSpecTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ SecurityWebFilterChain springSecurity(ServerHttpSecurity http) {
698698
// @formatter:off
699699
http
700700
.authorizeExchange()
701-
.pathMatchers("/**/message/**").hasAnyAuthority("SCOPE_message:read")
701+
.pathMatchers("/*/message/**").hasAnyAuthority("SCOPE_message:read")
702702
.and()
703703
.oauth2ResourceServer()
704704
.authenticationManagerResolver(authenticationManagerResolver());

0 commit comments

Comments
 (0)