Skip to content

Commit

Permalink
Allows Swagger API without authorization
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Ghazanfar Ali Danish <[email protected]>
  • Loading branch information
mdanish98 committed Oct 7, 2024
1 parent 5ff95bf commit 5c7836a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("/actuator/health/**").permitAll()
.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll()
.requestMatchers("/swagger-ui/**").permitAll()
.requestMatchers("/v3/**").permitAll()
.requestMatchers("/api-docs/**").permitAll()
.requestMatchers("api-docs/swagger-config/**").permitAll()
.anyRequest().authenticated()
)
.oauth2ResourceServer(oauth2 -> oauth2
Expand Down

0 comments on commit 5c7836a

Please sign in to comment.