通过WindowsIdentity对Web服务进行身份验证 [英] Authenticate to a webservice by WindowsIdentity

查看:91
本文介绍了通过WindowsIdentity对Web服务进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用这些

方式对Web服务进行身份验证(假设rService代表Web服务):


1)rService.Credentials = new

System.Net.NetworkCredential(" username"," password"," domainName");

2)rService.Credentials = System.Net。 CredentialCache.DefaultCredentials;


我的问题是有没有办法使用

对用户进行身份验证?WindowsIdentity ???

谢谢你的帮助

I know how to authenticate to a webservice using either of these
ways(Assuming that rService represents the webservice):

1) rService.Credentials = new
System.Net.NetworkCredential("username","password" ,"domainName");
2)rService.Credentials = System.Net.CredentialCache.DefaultCredentials;

My question is that is there a way to authenticate to a user using
WindowsIdentity ???
Thanks for your help

推荐答案

你好ALI-R,

你建议的两种方法都使用windows身份验证!只有

他们不使用ws安全性。他们使用IIS身份验证。


HTH

问候,

Dilip Krishnan

MCAD,MCSD。 net

dkrishnan at geniant dot com
http:// www。 geniant.com
Hello ALI-R,
Both the methods you suggested use windows identity to authenticate! Only
they dont use ws security. They use IIS authentication.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
我知道如何使用这些方法之一对Web服务进行身份验证(假设rService代表web服务):

1)rService.Credentials = new
System.Net.NetworkCredential(" username"," password"," domainName");
2)rService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

我的问题是有没有办法使用
WindowsIdentity对用户进行身份验证???

感谢您的帮助
I know how to authenticate to a webservice using either of these
ways(Assuming that rService represents the webservice):

1) rService.Credentials = new
System.Net.NetworkCredential("username","password" ,"domainName");
2)rService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

My question is that is there a way to authenticate to a user using
WindowsIdentity ???

Thanks for your help



你是什么意思他们不使用Windows安全?


谢谢

" Dilip Krishnan" < DK ******* @ NOSPAM.geniant.com>在消息中写道

news:22 ********************** @ msnews.microsoft.com ...
what do you mean by they don''t use windows security?

Thanks
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:22**********************@msnews.microsoft.com ...
你好ALI-R,
你建议的两种方法都使用windows身份验证!
只有他们不使用ws安全。他们使用IIS身份验证。

HTH
问候,
Dilip Krishnan
MCAD,MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hello ALI-R,
Both the methods you suggested use windows identity to authenticate! Only they dont use ws security. They use IIS authentication.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I知道如何使用以下任何一种方式对Web服务进行身份验证(假设rService代表Web服务):

1)rService.Credentials = new
System.Net.NetworkCredential( "username,password,domainName;;
2)rService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

我的问题是有没有办法使用
WindowsIdentity对用户进行身份验证???

感谢您的帮助
I know how to authenticate to a webservice using either of these
ways(Assuming that rService represents the webservice):

1) rService.Credentials = new
System.Net.NetworkCredential("username","password" ,"domainName");
2)rService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

My question is that is there a way to authenticate to a user using
WindowsIdentity ???

Thanks for your help




你好ALI-R,

ws =网络服务。在您的情况下,网页本身受IIS保护(读取

传输级别)。 WS-Security为您提供消息级别身份验证/完整性/机密性

(与IIS或http无关)。当您设置凭据时,您实际上使用的是IIS支持的Windows /基本身份验证。


HTH

问候,

Dilip Krishnan

MCAD,MCSD.net

dkrishnan at geniant dot com
http://www.geniant.com
Hello ALI-R,
ws = web service. In your case web page as such is protected by IIS (read
transport level). WS-Security gives you message level authentication/integrity/confidentiality
(has nothing to do with IIS or http). When you set the credentials you are
actually using windows/basic authentication supported by IIS.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
你是什么意思他们不使用windows security?

感谢
Dilip Krishnan < DK ******* @ NOSPAM.geniant.com>在消息中写道
新闻:22 ********************** @ msnews.microsoft.com ...
what do you mean by they don''t use windows security?

Thanks
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:22**********************@msnews.microsoft.com ...
你好ALI-R,
你建议的两种方法都使用windows身份验证!
Hello ALI-R,
Both the methods you suggested use windows identity to authenticate!


只有


Only

他们不使用ws security。他们使用IIS身份验证。

HTH
问候,
Dilip Krishnan
MCAD,MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
they dont use ws security. They use IIS authentication.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
我知道如何验证使用这些方法之一的Web服务(假设rService代表web服务):

1)rService.Credentials = new
System.Net.NetworkCredential(" username" ,密码,域名;);
2)rService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

我的问题是,有没有办法使用
WindowsIdentity对用户进行身份验证???

感谢您的帮助
I know how to authenticate to a webservice using either of these
ways(Assuming that rService represents the webservice):

1) rService.Credentials = new
System.Net.NetworkCredential("username","password" ,"domainName");
2)rService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

My question is that is there a way to authenticate to a user using
WindowsIdentity ???

Thanks for your help



这篇关于通过WindowsIdentity对Web服务进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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