Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NTLM Authentication using RestSharp?

Tags:

I am trying to use NTLM authentication for my REST calls to TeamCity using RestSharp.

IRestClient _client=new RestClient(_url);
_client.Authenticator = new NtlmAuthenticator            
(System.Net.CredentialCache.DefaultNetworkCredentials);

However it is not working. Please suggest if I am missing something.

like image 852
pinaki Avatar asked Nov 21 '13 11:11

pinaki


1 Answers

This now appears to be working properly and can be done very easily utilizing the NTLMAuthenticator like so:

RestClient client = new RestClient(_baseURL);
client.Authenticator = new NtlmAuthenticator();
like image 143
cjones26 Avatar answered Sep 21 '22 14:09

cjones26