Hello. A question about stubs. If I have an inter...
# pactflow
j
Hello. A question about stubs. If I have an interaction that requires an auth header. How do I call the stub generated from this where the auth header I provide to access my Pactflow tenant doesn't conflict with the stub. For example, I'm calling for a stub on my PactFlow server but I get an error response like:
Copy code
{
  "message": "No interaction found for POST some/request/requiring/auth",
  "interaction_diffs": [
    {
      "description": "some description",
      "provider_state": "some provider stage",
      "headers": {
        "Authorization": {
          "EXPECTED": "Bearer 1234",
          "ACTUAL": "Bearer {{PACTFLOW_API_KEY}}"
        }
      }
    }
  ]
}
m
It is a current limitation that you can't have two different types of authentication headers. In your case, If you add flexible matchers to the auth header it would pass (because a bearer token header has a standard format so the Pactflow token would match)
✅ 1
j
Thanks, @Matt (pactflow.io / pact-js / pact-go)
👍 1