Skip to content

Commit

Permalink
Added swagger request matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
nklimovych committed May 14, 2024
1 parent 8bb0b4b commit b574464
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(
auth -> auth
.requestMatchers("/auth/**", "/error", "/swagger-ui/**")
.requestMatchers(
"/auth/**",
"/error",
"/swagger-ui/**",
"/v3/api-docs/**",
"/swagger-resources/**",
"/swagger-ui.html",
"/webjars/**")
.permitAll()
.anyRequest()
.authenticated()
Expand Down

0 comments on commit b574464

Please sign in to comment.