Skip to content
Discussion options

You must be logged in to vote

It looks like I found the answer.

  1. I created an abstract class which all of my integration tests inherit which looks like
    public abstract class AbstractApiIntegrationTest {
    
     String getAccessToken(String username) {
       return getAccessToken(username, "Pam Manager");
     }
    
     String getAccessToken(String username, String fullName) {
       return Jwt.preferredUserName(username).claim("preferred_username", username)
       		       .claim("name", fullName)
       		       .claim("email", format("%[email protected]", username)).issuer("https://server.example.com")
       		       .audience("https://service.example.com").sign();
     }
    }
  2. I annotated each integration test class with @QuarkusTestResource(OidcWiremockTestR…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by InfoSec812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment