refactoring Gateway

This commit is contained in:
2025-10-10 12:59:43 +02:00
parent da7ea2c2da
commit 4cb35f94a3
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ dependencies {
// 2. Spring Boot Security (ersetzt das "service.complete"-Bundle)
// Dieses Bundle sollte spring-boot-starter-security, oauth2-client, oauth2-resource-server etc. enthalten
// Temporär auskommentieren, um das Bundle als Fehlerquelle auszuschließen
// implementation(libs.bundles.spring.boot.security)
//implementation(libs.bundles.spring.boot.security)
// Stattdessen die Abhängigkeiten direkt hinzufügen:
implementation(libs.spring.boot.starter.security)
@@ -6,7 +6,10 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.config.web.server.authenticated
import org.springframework.security.config.web.server.invoke
import org.springframework.security.config.web.server.pathMatchers
import org.springframework.security.config.web.server.permitAll
import org.springframework.security.web.server.SecurityWebFilterChain
import org.springframework.web.cors.CorsConfiguration
import org.springframework.web.cors.reactive.CorsConfigurationSource