Hi All, Is there a way to replace the authorizati...
# pact-jvm
m
Hi All, Is there a way to replace the authorization token while running the mvn pact:verify command. Problem Statement: When Consumer sent a Pact file, it has one auth token and Pact file will be verified immediately. But when i want to check the same pact file again, the consumer token would have expired.so in order to solve this problem i am trying to replace the token in the consumer pact file and run against the provider. Could you please let me know is there any way to solve this problem? Thanks in Advance
blobwave 1
y
Hey, See handling auth, sections 3 and 4 are relevant, https://docs.pact.io/provider/handling_auth provider states or request filters
storing valid tokens in a consumer pact file, isn’t scalable
g
@Yousaf Nabi (pactflow.io), Do you have any suggestions for this? I can try replacing the token while running the verification, but I am not able to replace the token while doing provider verification. Is there a sample which tells how to replace an active token during "mvn pact:verify" ?