WCF票基本验证 [英] WCF ticket base authentication
问题描述
我写一个使用wsHttpBinding绑定,这是不是在IIS,但在Windows服务托管WCF服务。我想有一个登录(使用者,通过)在服务的方法,如果该用户是有效,这将给票证到客户端。
I am writing WCF service that uses wsHttpBinding binding, which is not hosted in IIS but in Windows Service. I want to have a Login(user,pass) method in service, which will give a ticket to the client if the user is valid.
谁能帮助我了解如何实现WCF票基本验证?有没有标准的机制或我要实现我自己的?我也想存储的其他数据在每个用户的服务也是如此。
Can anyone help me to understand how to implement ticket base authentication in WCF? Is there any standard mechanism or I have to implement my own? I also want to store other data for each user in the in the service as well.
推荐答案
我找到了解决办法,我不知道是否有任何标准的机制或没有,但这里的后帮我解决这个问题...
http://blogs.microsoft.co.il /blogs/bursteg/archive/2006/04/23/141.aspx
我刚刚从登录方法返程票,如果用户valied,并发送令牌在每次调用消息头,它可以在其他服务调用进行检查
I found the solution, I don't know are there any standard mechanisms or not, but the post here helps me to solve the problem...
http://blogs.microsoft.co.il/blogs/bursteg/archive/2006/04/23/141.aspx
I just return ticket from login method if the user is valied, and send that token with the message header in every call, which can be checked in other service call
这篇关于WCF票基本验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!