Skip to content

Commit d4a75f3

Browse files
committed
Revert "chore: replace deprecated antpathrequestmatcher"
This reverts commit 366ecd3.
1 parent 9287ff2 commit d4a75f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/fr/insee/genesis/configuration/auth/security/OIDCSecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.springframework.security.oauth2.jwt.Jwt;
2121
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter;
2222
import org.springframework.security.web.SecurityFilterChain;
23-
import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher;
23+
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
2424

2525
import java.util.Collection;
2626
import java.util.Collections;
@@ -51,7 +51,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
5151
for (var pattern : whitelistMatchers) {
5252
http.authorizeHttpRequests(authorize ->
5353
authorize
54-
.requestMatchers(PathPatternRequestMatcher.withDefaults().matcher(pattern)).permitAll()
54+
.requestMatchers(AntPathRequestMatcher.antMatcher(pattern)).permitAll()
5555
);
5656
}
5757
http

0 commit comments

Comments
 (0)