如何:将SCF与Sqlmembership一起使用wcf身份验证和Roleprovider服务 [英] How to : SSO Using wcf Authentication and Roleprovider service with Sqlmembership

查看:101
本文介绍了如何:将SCF与Sqlmembership一起使用wcf身份验证和Roleprovider服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是WCF的新手.我在使用wcf时遇到困难.我需要实施单一登录.我正在使用SqlMembership执行身份验证.对于SSO,建议我使用WCF身份验证服务和带有成员身份的角色提供程序.我进行了很多搜索,但找不到任何使用此身份验证服务的方法.我们如何将角色提供者和成员资格提供者设置为wcf服务?如何使用WCF执行SSO?我发现了很多链接,它们显示了如何启用身份验证服务,但没有一个链接可以使用它们.角色提供者对我来说还很陌生.

我需要你的指导怪胎.

如果我有示例或语法链接,它将对您有所帮助.

Hello everyone,

I am very new to WCF. I am having a difficulty with wcf. I need to implement Single Sign-on. I am performing authentication with SqlMembership. For SSO, I am suggested to use WCF Authentication service and Role Provider with Membership. I searched a lot but I cant find any way to consume this authentication service. how can we set our role provider and membership provider to a wcf service? how can we perform SSO with WCF? I have found so many link that shows how to enable Authentication service but none for consuming them. And Role provider is quite new to me.

I need your guidance geeks.

It will be more helpful If i will have example or link to syntax.

推荐答案

最后,我得到了解决方案. web.config的MembershipProvider标记中有一个称为ServiceURI的属性.在其中提及您的WCF服务URL.您的服务将充当成员资格提供者.

角色和个人资料也是如此.
Finally I got the solution. There is a attribute in MembershipProvider tag of web.config called ServiceURI. Mention you WCF service URL in it. your service will act as membership Provider.

Same goes for Roles and profiles.


这篇关于如何:将SCF与Sqlmembership一起使用wcf身份验证和Roleprovider服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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