I have the following configuration:
- self-hosted ASP.NET Web API
- ASP.NET MVC 3 web application
Web app [2] comunicates with Web API [1] over HTTPS. They both (for now) live on the same machine.
Http binding for the Web API [1] is configured like that:
httpBinding.Security.Mode = HttpBindingSecurityMode.Transport;
httpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
httpBinding.TransferMode = TransferMode.Streamed
I cannot make it work using https AND ntlm authorization.
- If I communicate over plain http it works and I'm properly authenticated
- If I communicate over https it gives me "401 Unauthorized" error for all controller actions which have [Authorize] tag (it works for actions which do not require authorization though)
Why changing ONLY the transport protocol (from http to https) stops NTLM authentication from working?
Thanks for any help with that!