Skip to content

Commit

Permalink
Move private-key oauth property to test case
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaaano committed Sep 6, 2023
1 parent 047a198 commit c65b865
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/app/pet/PetResourceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected String jwt(final String user) {
.audience("theaudience")
.upn(user)
.groups(roles(user))
.sign();
.sign("private-key.pem");
}

private Set<String> roles(final String user) {
Expand Down

0 comments on commit c65b865

Please sign in to comment.