WCF身份验证(WSDualHttpBinding绑定) [英] WCF Authentication (WSDualHttpBinding Binding)

查看:125
本文介绍了WCF身份验证(WSDualHttpBinding绑定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我开发了WcfServce并将其托管到WindowsService中,

WcfService是双工的,并使用WSDualHttpBinding绑定.

现在我在WcfService的身份验证方面遇到了挑战

我知道两种验证用户身份的方法

1-Windows身份验证(需要WSDualHttpBinding不支持的传输级别安全性)

2-AspMemberShip(我的WcfService不是网站,而是托管到WindowsService中)

现在我想要一种验证用户身份的方法

我害怕其他人使用我的WcfService.

最好的问候.

hello everyone.

i developed a WcfServce and host it into WindowsService,

the WcfService is duplex and use WSDualHttpBinding binding.

now i have challenge in authentication for WcfService

i know two way to authenricate user

1-Windows Authentication(need transport level sercurity that WSDualHttpBinding doesn''t support)

2-AspMemberShip(my WcfService is not website and it host into WindowsService)

now i wanna a way to authenticate user

i scared to another person use my WcfService.

Best Regards.

推荐答案



现在的问题就是为什么要对Windows Service上托管的服务使用WSDualHttpBinding?
如果您在Windows服务上托管服务,这意味着您正在使用Intranet上的服务,则netTcpBinding更适合于双工通信,并且比WSDualHttpBinding更出色,后者是HTTP上双工通信的首选绑定.

您可以将Windows身份验证与net.tcp绑定一起使用.
Hi,

Now the quesiton is why you are using WSDualHttpBinding with service hosted on Window Service?
If you are hosting service on Windows service that means you are consuming service over intranet then netTcpBinding is better for duplex communication and it''s more performant than WSDualHttpBinding which is the preferred binding for duplex communication over HTTP.

You can use Windows authentication with net.tcp binding.


这篇关于WCF身份验证(WSDualHttpBinding绑定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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