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 May 12, 2024
1 parent 5f723af commit 05f28d4
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 05f28d4

Please sign in to comment.