Authentication for url called via proxy #241

Closed
opened 2025-12-29 15:18:57 +01:00 by adam · 2 comments
Owner

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?

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?
adam added the question label 2025-12-29 15:18:57 +01:00
adam closed this issue 2025-12-29 15:18:57 +01:00
Author
Owner

@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

@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
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#241