Skip to content

Commit

Permalink
feat(gateway): add permitted requests for public routes
Browse files Browse the repository at this point in the history
  • Loading branch information
skrollu committed Aug 18, 2023
1 parent f8eb059 commit 8bac100
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 18-08-2023

- Requests through the gateway now works fine for un/authenticated requests.

### 15-08-2023

- Change the authorization flow of keycloak with a user id user password user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ SecurityWebFilterChain securityFilterChain(ServerHttpSecurity http) {
http
.csrf().disable()
.authorizeExchange(exchange -> exchange
.pathMatchers("/eureka/**") // static resources
.permitAll()
.anyExchange()
.authenticated())
.pathMatchers("/api/v1/products/**").permitAll()
.pathMatchers("/api/v1/starships/**").permitAll()
.pathMatchers("/api/v1/inventory/**").permitAll()
.anyExchange().authenticated())
.oauth2Login();
return http.build();
}
Expand Down

0 comments on commit 8bac100

Please sign in to comment.