Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Why is HttpWebRequest with NTLM authentication using always the same first credential?

I am trying to connect to my REST service with NTLM authentication from my android application. The problem is that, although I change the credentials, it is always validating me with the credentials that I had at the beginning. That is, if at first I authenticate as user A, then I can not do it as user B since it always authenticate myself as user A.
I have been reading and I have found that this could happen if PreAuthenticate = true but in my case PreAuthenticate = false so... I don´t know where is the problem.

Anyone know what could be happening?


Sign In or Register to comment.