From 84d09fd48b1a7b9ccb26155c68a34400421c3fb9 Mon Sep 17 00:00:00 2001 From: Hitesh C Date: Sun, 30 Apr 2023 20:35:45 +0000 Subject: [PATCH] [FIXED] Wiremock integrated tests after changing the privateKey for quarkus.oidc.code-flow-encrypted-id-token-jwk.token.decryption-key-location, the integration Tests fail for the older code and pass for the updated code, which is the expected behaviour (cherry picked from commit 9c7c84e96ef83e867bff56cafb0e8bae81e80626) --- .../src/main/resources/application.properties | 2 +- .../main/resources/privateKeyEncryptedIdToken.jwk | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 integration-tests/oidc-wiremock/src/main/resources/privateKeyEncryptedIdToken.jwk diff --git a/integration-tests/oidc-wiremock/src/main/resources/application.properties b/integration-tests/oidc-wiremock/src/main/resources/application.properties index cd675540342b3..850b5c15dc890 100644 --- a/integration-tests/oidc-wiremock/src/main/resources/application.properties +++ b/integration-tests/oidc-wiremock/src/main/resources/application.properties @@ -25,7 +25,7 @@ quarkus.oidc.code-flow-encrypted-id-token-jwk.client-id=quarkus-web-app quarkus.oidc.code-flow-encrypted-id-token-jwk.credentials.secret=secret quarkus.oidc.code-flow-encrypted-id-token-jwk.application-type=web-app quarkus.oidc.code-flow-encrypted-id-token-jwk.token-path=${keycloak.url}/realms/quarkus/encrypted-id-token -quarkus.oidc.code-flow-encrypted-id-token-jwk.token.decryption-key-location=privateKey.jwk +quarkus.oidc.code-flow-encrypted-id-token-jwk.token.decryption-key-location=privateKeyEncryptedIdToken.jwk quarkus.oidc.code-flow-encrypted-id-token-pem.auth-server-url=${keycloak.url}/realms/quarkus/ quarkus.oidc.code-flow-encrypted-id-token-pem.client-id=quarkus-web-app diff --git a/integration-tests/oidc-wiremock/src/main/resources/privateKeyEncryptedIdToken.jwk b/integration-tests/oidc-wiremock/src/main/resources/privateKeyEncryptedIdToken.jwk new file mode 100644 index 0000000000000..5f0a577eff87b --- /dev/null +++ b/integration-tests/oidc-wiremock/src/main/resources/privateKeyEncry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