NTLM authentication with RestSharp?

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

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

However, it does not work. Please suggest if I missed something.

+6
source share
3 answers

Now it works correctly and can be easily done using NTLMAuthenticator :

 RestClient client = new RestClient(_baseURL); client.Authenticator = new NtlmAuthenticator(); 
+17
source

Try the following:

 var client = new RestClient(_baseURL) { Authenticator = new RestSharp.Authenticators.NtlmAuthenticator() }; 
+1
source

Not currently supported. Refer to the topic below.

http://devnet.jetbrains.com/thread/451079?tstart=0

0
source

Source: https://habr.com/ru/post/958556/


All Articles