如何为特定的REST WCF服务实现登录摘要身份验证? [英] How can Login Digest Authentication be achieved for a particular REST WCF service ?
问题描述
我是WCF的新手.我开发了一个WCF项目,其中包含2个简单的服务.其中1用于登录身份验证,另一个仅用于显示数据.我已使用摘要身份验证(DigestAuthenticationHostFactory).现在正在验证 这项服务被称为先行".但我只想验证登录服务.如何实现?
Hi, i am new to WCF. I have developed a WCF project which contains 2 simple services. In that 1 is for login authentication and another is just for displaying a data. i have used digest authentication (DigestAuthenticationHostFactory). Now it is authenticating for that service which ever is called first. but I want only to authenticate for Login service. How can this be achieved ?
注意:登录服务不是强制性的首先被调用.
推荐答案
首先请尝试检查本文:
WCF REST服务上的摘要式身份验证( http://www.codeproject. com/Articles/162726/WCF-REST-Service上的摘要式身份验证).
First please try check this article:
Digest Authentication on a WCF REST Service(http://www.codeproject.com/Articles/162726/Digest-Authentication-on-a-WCF-REST-Service).
然后,如果您只想验证登录服务,请尝试使用用户名验证.
具有自定义用户名密码身份验证的WCF服务( http://www.codeproject. com/Articles/96028/WCF-Service-with-custom-username-password-authenti ).
Then if you only want to authenticate the login service, try to use the username authentication.
WCF Service with custom username password authentication(http://www.codeproject.com/Articles/96028/WCF-Service-with-custom-username-password-authenti).
谢谢.
这篇关于如何为特定的REST WCF服务实现登录摘要身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!