Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class SecurityConfiguration {
@Bean
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
return http
.securityMatcher(ServerWebExchangeMatchers.anyExchange())
.securityMatcher(ServerWebExchangeMatchers.pathMatchers("/api/**"))
.csrf(ServerHttpSecurity.CsrfSpec::disable)
.authorizeExchange(authorizeExchangeSpec -> authorizeExchangeSpec
.pathMatchers("/api/oauth2/**", "/api/login/**").permitAll()
Expand Down
7 changes: 0 additions & 7 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ spring:
filters:
- SetStatus=200

- id: plain-text-response
uri: "no://localhost"
predicates:
- Path=/api
filters:
- SetStatus=200

- id: oauth2-auth
uri: http://localhost:8080
predicates:
Expand Down