SharePoint 2010中的WCF服务不进行授权,甚至不传递凭据
||
SharePoint门户处于声明模式,该服务托管在/ _vti_bin中。
根据http://msdn.microsoft.com/zh-CN/library/ff521586.aspx,我正在使用MultipleBaseAddressBasicHttpBindingServiceHostFactory。
添加对服务的引用会产生一个绑定,该绑定应使用NTLM,因此应正确配置该服务。在同一台计算机上运行的服务客户端(现在)实例化一个新的BasicHttpBinding,将ClientCredentialType设置为Ntlm,AllowNtlm设置为true,甚至(在某些测试中)将Credentials.Windows.ClientCredential设置为DefaultNetworkCredentials或特定的NetworkCredentials。
无论我做什么,Thread.CurrentPrinciple在服务端始终是匿名的,而ServiceSecurityContext.Current.WindowsIdentity同样是空的。
我在这里做错了什么?
没有找到相关结果
已邀请:
0 个回复