在WCF服务中实现跨域身份验证 [英] Implementing cross domain authentication in a WCF service

查看:100
本文介绍了在WCF服务中实现跨域身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在wcf服务中实现跨域身份验证,这意味着使用来自不同域的服务的用户应由该服务进行身份验证.任何人都知道该怎么做.我找到了一个链接,但没有太大帮助.

I want to implement cross domain authentication in a wcf service, means users consuming the service from different domain should be authenticated by the service. Anybody know how to do this.  I have found one link but its not helping much.

http://stackoverflow.com/questions/6896471/problem-authenticating-with-wcf-service-cross-domain 

http://stackoverflow.com/questions/6896471/problem-authenticating-with-wcf-service-cross-domain 

任何帮助都会很棒.

谢谢

推荐答案

您好,KumarMohiT,

Hi KumarMohiT,

根据这种情况,据我所知,WCF服务是否使用Windows身份验证

According to this case, as far as I know, if the WCF service use the windows authentication want

实施跨域身份验证.它需要域之间的信任.

to implement cross domain authenticated. It need to  trust between domains.

此外,您可以为WCF服务启用WIF.

Also, you can enable the WIF for WCF service.

有关更多信息,请参阅以下文章:

For more information, please refer to the following articles:

1. WCF中的身份验证,授权和身份

2. 3.单点登录(SSO )的跨网域

3.Single Sign On (SSO) for cross-domain

================================================ ==========

=========================================================

此响应包含对第三方万维网站点的引用.微软是

This response contains a reference to a third party World Wide Web site. Microsoft is

提供此信息是为了给您带来方便. Microsoft不控制这些

providing this information as a convenience to you. Microsoft does not control these

网站,尚未测试在这些网站上找到的任何软件或信息;所以,

sites and has not tested any software or information found on these sites; therefore,

Microsoft无法对质量,安全性或适用性做任何陈述

Microsoft cannot make any representations regarding the quality, safety, or suitability

在此找到的任何软件或信息.使用时存在内在的危险

of any software or information found there. There are inherent dangers in the use of

在Internet上找到的任何软件,并且Microsoft警告您,请确保您

any software found on the Internet, and Microsoft cautions you to make sure that you

在从Internet检索任何软件之前,完全了解风险.

completely understand the risk before retrieving any software from the Internet.

最好的问候,

东万俊


这篇关于在WCF服务中实现跨域身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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