File tree Expand file tree Collapse file tree
src/main/java/fr/insee/genesis/configuration/auth/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import org .springframework .security .oauth2 .jwt .Jwt ;
2121import org .springframework .security .oauth2 .server .resource .authentication .JwtAuthenticationConverter ;
2222import 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
2525import java .util .Collection ;
2626import 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
You can’t perform that action at this time.
0 commit comments