fix: Fix security config, add health check route and adjust requests #9

Merged
ptran merged 2 commits from feature/healthcheck into main 2025-02-05 11:38:00 +00:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit db81b4a710 - Show all commits

View File

@ -53,7 +53,7 @@ class KeycloakSecurityConfig {
@Bean
public SecurityFilterChain resourceServerFilterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(auth -> auth
.requestMatchers("/test", "/", "/swagger", "/swagger-ui/**", "/v3/api-docs/**", "/health").permitAll()
.requestMatchers("/swagger", "/swagger-ui/**", "/v3/api-docs/**", "/health").permitAll()
.anyRequest().authenticated()
)
.oauth2ResourceServer(spec -> spec.jwt(Customizer.withDefaults()));