我有以下配置:
Web API [1]的Http绑定配置如下:
感谢您提供的任何帮助!
- 自托管的ASP.NET Web API
- ASP.NET MVC 3 Web应用程序
Web API [1]的Http绑定配置如下:
httpBinding.Security.Mode = HttpBindingSecurityMode.Transport;
httpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
httpBinding.TransferMode = TransferMode.Streamed
我无法使用https和ntlm授权使其工作。
- 如果使用普通的http通信,则可以正常验证。
- 如果使用https通信,则对于所有带有[Authorize]标记的控制器操作都会出现“401未经授权”的错误(但不需要授权的操作可以正常运行)。
感谢您提供的任何帮助!