Skip to content

Commit

Permalink
Merge pull request #223 from Arabasta/secure-endpoints
Browse files Browse the repository at this point in the history
update spring securtiy
  • Loading branch information
Arabasta authored Aug 18, 2024
2 parents e7ffb53 + 13f6774 commit dd1c577
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,17 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.requestMatchers(
"/api/v1/health/customer",
"/api/v1/customer/**",
"/api/v1/backtest/**"
"/api/v1/backtest/**",
"/api/v1/user/**"
).hasAuthority("ROLE_CUSTOMER")

// ADMIN role required to access /api/health/admin
.requestMatchers(
"/api/v1/health/admin",
"/api/v1/admin/**",
"/api/v1/dev/**",
"/api/v1/backtest/**"

"/api/v1/backtest/**",
"/api/v1/user/**"
).hasAuthority("ROLE_ADMIN")

.anyRequest().authenticated();
Expand Down

0 comments on commit dd1c577

Please sign in to comment.