身份验证应该在 wcf 的单独服务中吗? [英] Should authentication be in a separate service for wcf?

查看:24
本文介绍了身份验证应该在 wcf 的单独服务中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 msdn 上的 this,它告诉你将.svc文件的Service属性设置为System.Web.ApplicationServices.AuthenticationService,但是这样我就不能将它用于我的服务库,那么是不是说如果我想以这种方式使用 authentication,我应该将它与我的服务分开?我将如何在我自己的服务中使用我的身份验证服务.

According to this on msdn, it tells you to set the Service attribute of the .svc file to System.Web.ApplicationServices.AuthenticationService, but then I can't use it for my service library, so is it pretty much saying that if I want to use authentication this way, I should keep it separate from my service? How would I use my authentication service in my own service.

推荐答案

身份验证服务 将 ASP.NET 成员身份公开为 SOAP 服务.它与自定义 WCF 服务无关.自定义 WCF 服务通过用户名身份验证直接使用成员资格 API.

Authentication service exposes ASP.NET membership as SOAP service. It has no relation to custom WCF services. Custom WCF services use membership API directly via user name authentication.

这篇关于身份验证应该在 wcf 的单独服务中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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