From 5562a4012124d59a722fa9e05c1c70c419ff4332 Mon Sep 17 00:00:00 2001 From: Oleh Astappiev Date: Mon, 25 Sep 2023 23:10:31 +0200 Subject: [PATCH] fix: JWT keys in tests --- .../src/main/resources/application.properties | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/interweb-server/src/main/resources/application.properties b/interweb-server/src/main/resources/application.properties index de18d48b..10c3f56e 100644 --- a/interweb-server/src/main/resources/application.properties +++ b/interweb-server/src/main/resources/application.properties @@ -17,15 +17,17 @@ quarkus.health.openapi.included=false quarkus.smallrye-jwt.enabled=true jwt.issuer=https://l3s.de/interweb -jwt.public.key= -jwt.private.key= +# Make sure not to use these keys in production +# Use https://jwt.io/ to generate your own keys +%dev,test.jwt.key={"kty":"oct","alg":"HS256","k":"EAOrMjRGCUolnkODMzSWGJxjQFY4GxDW-4xFTBu5N1Y"} -smallrye.jwt.encrypt.key=${jwt.public.key} -smallrye.jwt.sign.key=${jwt.private.key} smallrye.jwt.new-token.issuer=${jwt.issuer} smallrye.jwt.new-token.lifespan=7200 -mp.jwt.verify.publickey=${jwt.public.key} +smallrye.jwt.sign.key=${jwt.key} + mp.jwt.verify.issuer=${jwt.issuer} +mp.jwt.verify.publickey=${jwt.key} +mp.jwt.verify.publickey.algorithm=HS256 # Sentry quarkus.log.sentry=false