feat(security): allow access to webhook endpoint
Some checks failed
CI / Get Changed Files (pull_request) Successful in 5s
CI / Checkstyle Main (pull_request) Has been cancelled
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled

This commit is contained in:
csimonis 2025-04-23 08:42:27 +02:00
parent 9ec6d8f413
commit aa78ccc630

View file

@ -23,7 +23,7 @@ public class SecurityConfig {
.cors(Customizer.withDefaults()) .cors(Customizer.withDefaults())
.csrf(csrf -> csrf.disable()) .csrf(csrf -> csrf.disable())
.authorizeHttpRequests(auth -> { .authorizeHttpRequests(auth -> {
auth.requestMatchers("/swagger/**", "/swagger-ui/**", "/health").permitAll() auth.requestMatchers("/webhook", "/swagger/**", "/swagger-ui/**", "/health").permitAll()
.anyRequest().authenticated(); .anyRequest().authenticated();
}) })
.oauth2ResourceServer(oauth2 -> oauth2.jwt(jwt -> .oauth2ResourceServer(oauth2 -> oauth2.jwt(jwt ->