fixing Keycloak JwtService entfernt

This commit is contained in:
2025-10-13 13:03:48 +02:00
parent 7921cc4b32
commit 212923ae8f
21 changed files with 31 additions and 2555 deletions
-2
View File
@@ -19,7 +19,6 @@ dependencies {
// === Core Dependencies ===
implementation(projects.core.coreUtils)
implementation(projects.platform.platformDependencies)
implementation(projects.infrastructure.auth.authClient)
implementation(projects.infrastructure.monitoring.monitoringClient)
// === GATEWAY-SPEZIFISCHE ABHÄNGIGKEITEN ===
@@ -31,7 +30,6 @@ dependencies {
implementation(libs.bundles.logging)
implementation(libs.bundles.jackson.kotlin)
implementation(project(":infrastructure:event-store:redis-event-store"))
implementation(project(":infrastructure:event-store:redis-event-store"))
// === Test Dependencies ===
testImplementation(projects.platform.platformTesting)
@@ -26,16 +26,3 @@ keycloak:
client-id: ${KEYCLOAK_CLIENT_ID:api-gateway}
public-client: false
bearer-only: true
# Gateway-spezifische Sicherheitskonfiguration
gateway:
security:
jwt:
# Enable JWT validation via Spring Security OAuth2 Resource Server
enabled: true
keycloak:
# Custom JWT filter DISABLED - using Spring Security oauth2ResourceServer instead
# This prevents duplicate authentication and ensures proper JWT signature validation
enabled: false
server-url: ${KEYCLOAK_SERVER_URL:http://keycloak:8080}
realm: ${KEYCLOAK_REALM:meldestelle}
@@ -11,7 +11,7 @@ import org.springframework.test.context.TestPropertySource
* Simplified integration test for Keycloak Gateway integration.
* This test verifies that the Spring context can initialize properly with Keycloak configuration
* without requiring actual Testcontainers, focusing on resolving the OAuth2 ResourceServer
* auto-configuration timing issue.
* autoconfiguration timing issue.
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("keycloak-integration-test")