mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Authentication for url called via proxy #241
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BosNetDeveloper on GitHub (Jan 17, 2020).
This might be already answered but I couldn't find any documentation or examples
The url I call via proxy requires authentication. I have the token from auth server for this. Is there any way I can pass the token with the request header?
@StefH commented on GitHub (Jan 17, 2020):
Do you have a Bearer token? You can just add this to the headers as normally.
If you really need username/password, see this article: https://github.com/WireMock-Net/WireMock.Net/wiki/Settings#proxyandrecordsettings
@BosNetDeveloper commented on GitHub (Jan 23, 2020):
Thanks. I was trying to access the mock server via the browser. That wasn't working but making a rest call from my code worked just fine