Merge pull request 'feat(security): allow access to webhook endpoint' (!128) from bugfix/deposit into main
Some checks are pending
Release / Release (push) Waiting to run

Reviewed-on: #128
Reviewed-by: Jan K9f <jan@kjan.email>
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
Reviewed-by: Jan-Marlon Leibl <jleibl@proton.me>
This commit is contained in:
Jan-Marlon Leibl 2025-04-23 06:59:50 +00:00
commit 0291450eb9
No known key found for this signature in database
GPG key ID: 944223E4D46B7412

View file

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