访问从C#中的SPNEGO认证的Web服务 [英] Accessing a SPNEGO authenticated webservice from C#

查看:171
本文介绍了访问从C#中的SPNEGO认证的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个通过HTTP提供数据,并通过SPNEGO(单点登录)用户进行身份验证的Web服务。我们要编写一个C#客户端此Web服务。

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.

有没有生成必要的令牌.NET任何标准/提供的方式吗? 。广泛的谷歌搜索显示,有对SPNEGO没有原生支持

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

推荐答案

在Windows下面应该做的伎俩:

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;

这篇关于访问从C#中的SPNEGO认证的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆