fix: Fix security config, add health check route and adjust requests #9
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user