How to send Windows current credentials using IJsonServiceClient

Hello,

I’d like that each request I’m sending using IJsonServiceClient will append current identity credentials of the process identity. It is in order to satisfy Window Authentication on IIS server.

Do I need to implement smth. in addition to just calling .Get() or .Post() method of the IJsonServiceClient?

I found the solution. There is a property in the JsonServiceClient implementation of the IJsonServiceClient interface which has Credentials property. This property should be set to CredentialCache.DefaultCredentials.

The problem was that I’m using the interface which lacks this property. I’ll have to set it in a code that instantiates the interface.