身份验证应该在 wcf 的单独服务中吗?

编程入门 行业动态 更新时间:2024-10-28 19:29:26
本文介绍了身份验证应该在 wcf 的单独服务中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

根据 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 19:49:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1141207.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   wcf

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!