Skip to content

Commit

Permalink
WIP more on webjars
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Sep 14, 2024
1 parent 9b242af commit c8381b0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ public class ProbeSecurityConfig {
*/
@Bean(name = "securityFilterChain")
public SecurityFilterChain getSecurityFilterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests().requestMatchers("/webjars/**").permitAll().anyRequest()
.authenticated().and().addFilter(getSecurityContextPersistenceFilter())
http.authorizeHttpRequests().requestMatchers(new AntPathRequestMatcher("/webjars/**"))
.permitAll();
http.authorizeHttpRequests().requestMatchers(new AntPathRequestMatcher("/**")).permitAll()
.anyRequest().authenticated().and().addFilter(getSecurityContextPersistenceFilter())
.addFilter(getJ2eePreAuthenticatedProcessingFilter()).addFilter(getLogoutFilter())
.addFilter(getExceptionTranslationFilter()).addFilter(getFilterSecurityInterceptor());
return http.build();
Expand Down

0 comments on commit c8381b0

Please sign in to comment.