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
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:
commit
0291450eb9
1 changed files with 1 additions and 1 deletions
|
@ -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 ->
|
||||||
|
|
Reference in a new issue