From c65b865f198fc973414f187d52137ae9efb2b85d Mon Sep 17 00:00:00 2001 From: Juliano Mohr Date: Wed, 6 Sep 2023 16:53:13 +0100 Subject: [PATCH] Move private-key oauth property to test case --- src/main/resources/application.properties | 3 --- src/test/java/app/pet/PetResourceTest.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index d35054e..85b18a2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -42,9 +42,6 @@ quarkus.http.auth.permission.pets.policy=authenticated ## SmallRye JWT Extension Security Information %test.mp.jwt.verify.publickey.location=public-key.pem -%test.mp.jwt.verify.issuer=https://example.com/issuer -%test.mp.jwt.verify.audiences=theaudience -%test.smallrye.jwt.sign.key.location=private-key.pem ### prod %prod.mp.jwt.verify.publickey.location=http://localhost:50102/realms/quarkus/protocol/openid-connect/certs %prod.mp.jwt.verify.issuer=http://localhost:50102/realms/quarkus diff --git a/src/test/java/app/pet/PetResourceTest.java b/src/test/java/app/pet/PetResourceTest.java index 35e10fc..e2238f5 100644 --- a/src/test/java/app/pet/PetResourceTest.java +++ b/src/test/java/app/pet/PetResourceTest.java @@ -26,7 +26,7 @@ protected String jwt(final String user) { .audience("theaudience") .upn(user) .groups(roles(user)) - .sign(); + .sign("private-key.pem"); } private Set roles(final String user) {