如何保护WCF层.基本上,只有通过Web服务器认证的用户ID才能访问wcf服务. [英] How to secure the WCF layer. basically only user ids authenticated by the web server should get access to the wcf services.

查看:74
本文介绍了如何保护WCF层.基本上,只有通过Web服务器认证的用户ID才能访问wcf服务.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想保护WCF层.基本上,只有通过Web服务器认证的用户ID才能访问wcf服务.

我尝试通过在IIS上创建证书来尝试,但是无法获得我想要的正确输出(以保护WCF层.基本上只有经过Web服务器认证的用户ID才可以访问wcf服务),就像任何客户端都希望通过传递访问服务一样服务URL .svc首先询问用户ID和密码以查看服务.请帮帮我.


Windows Server 2008 R2
IIS 7.5
Silverlight 4.0
C尖.

谢谢.

I want to secure the WCF layer. basically only user ids authenticated by the web server should get access to the wcf services.

I tried by creating Certificate at IIS but not able to get proper output as i want (to secure the WCF layer.basically only user ids authenticated by the web server should get access to the wcf services) like any client want to access services by passing Service URL .svc first ask Userid and Password to see services . please help me.


Windows server 2008 R2
IIS 7.5
Silverlight 4.0
C sharp.

Thanks.

推荐答案

在所有用户都是相关Active Directory成员的情况下,您可以使用Windows或基本身份验证来使用IIS保护服务.如果不是这种情况,则需要实现UserNamePassword验证器,以便可以针对自己的凭据存储进行身份验证:

http://msdn.microsoft.com/en-us/library/ms733131.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/aa702565.aspx [ ^ ]
You can either Windows or Basic Authentication to secure the service using IIS in the case that all your users are members of the relevant Active Directory. If this isn''t the case, you need to implement a UserNamePassword validator so you can authenticate against your own credential store:

http://msdn.microsoft.com/en-us/library/ms733131.aspx[^]

http://msdn.microsoft.com/en-us/library/aa702565.aspx[^]


这篇关于如何保护WCF层.基本上,只有通过Web服务器认证的用户ID才能访问wcf服务.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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