开发者

Accessing a SPNEGO authenticated webservice from C#

开发者 https://www.devze.com 2023-02-19 11:18 出处:网络
We have a web service that serves data over HTTP and authenticates users via SPNEGO (and single sign-on). We want to write a C# client for this web service.

We have a web service that serves data over HTTP and authenticates users via SPNEGO (and single sign-on). We want to write a C# client for this web service.

Is there any 开发者_JAVA技巧standard/provided way in .NET of generating the necessary token? Extensive Googling suggests that there is no native support for SPNEGO.


In Windows the following should do the trick:

BasicHttpBinding binding = new BasicHttpBinding();
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
//SSL (https):
binding.Security.Mode = BasicHttpSecurityMode.Transport;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号