How to add authentication token during pact-verification process when getting contract file in clojure #1731
Labels
question
Indicates that an issue, pull request, or discussion needs more information
I am trying to get the contract file in order to verify pact with the provider in clojure. Since we are using pactflow we need to authenticate with the bearer token. We are doing the following but it is not working.:
:consumerA{
:pact-source "https://company.pactflow.io/pacts/provider/providerA/consumer/consumerA/latest"
:auth {:token "auth-token"}
}
We are getting the following error :
Error encountered performing task 'pact-verify' with profile(s): 'pact'
InvalidHttpResponseException(message=Request to source 'UrlSource(url=https://company.pactflow.io/pacts/provider/providerA/consumer/consumerA/latest, pact=null)' failed with response 'HTTP/1.1 401 Unauthorized')
Version used: au.com.dius.pact.provider/lein "4.1.42"
Can you please support here
The text was updated successfully, but these errors were encountered: