Using authentication in contract test #1111
Unanswered
rshakespearBHR
asked this question in
Ask For Help
Replies: 1 comment 2 replies
-
Hi @rshakespearBHR, have you exported auth-tokens in the contract as mentioned in the documentation. I suggest you to have a look at the sample project and compare your setup with it to get the missing piece if there is one. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a POC using specmatic. I have a yaml file, and have followed the docs to setup/configure authentication in and environment config in my specmatic.json file. The problem I'm running into is that when it passes the auth it is passing a spoofed basic auth value, rather than the one defined in the specmatic.json. This results in every request returning a 401 unauthorized.
I'm running the test using and env=development flag, to specify the environment from my specmatic.json file. What am I missing to get it to use the actual auth variables from the file, instead of generating spoofed auth variables?
Beta Was this translation helpful? Give feedback.
All reactions