fixing Keycloak JwtService entfernt
This commit is contained in:
@@ -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}
|
||||
|
||||
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user