Skip to content

Commit

Permalink
fix: always allow API documentation route
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominick Leppich committed Sep 18, 2024
1 parent aaf9a78 commit 734b96b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public SecurityConfiguration(BearerTokenAuthFilter bearerTokenAuthFilter) {
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth -> auth
.dispatcherTypeMatchers(DispatcherType.ASYNC)
.permitAll()
.dispatcherTypeMatchers(DispatcherType.ASYNC).permitAll()
.requestMatchers("/docs/**").permitAll()
.anyRequest()
.authenticated()
)
Expand Down

0 comments on commit 734b96b

Please sign in to comment.