fixing Keycloak JwtService entfernt
This commit is contained in:
@@ -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