WCF路由服务-目标端点的基本身份验证

问题描述:

大家好,

我正在开发一个实现,其中必须使用WCF路由服务将请求路由到内部服务.在这种情况下,内部服务启用了基本身份验证.有没有一种方法可以为 路由服务web.config中的目标Web服务?感谢您的帮助!

I am working on an implementation where I have to use WCF routing service to route requests to internal services. In this scenario, internal services have basic authentication enabled. Is there a way to set basic authentication client credentials for the target web service in routing service web.config ? Any help is appreciated!

感谢,Pavan MCTS-Microsoft Biztalk Windows Server 2010

Thanks, Pavan MCTS-Microsoft Biztalk Windows Server 2010

>>有没有办法设置基本身份验证客户端路由服务web.config中目标Web服务的凭据?

>>Is there a way to set basic authentication client credentials for the target web service in routing service web.config ?

不,这是不可能的.支持安全上下文转发的唯一用例是使用Windows凭据的邮件安全性.

No, it is impossible. The only use case that supports security context forwarding is message security with Windows credentials.

其他用例(例如用户名密码,X.509或联合凭据)不允许安全上下文转发.这意味着可以将路由器配置为强制执行消息安全性,但是必须将服务配置为禁用安全性,并且不能 访问安全上下文,例如用户的身份.

Other use cases such as username password , X.509 or federated credentials does not allow security context forwarding. It means that the router can be configured to enforce message security but the service must be configured to disable security and it cannot access the security context such as the user's Identity.

有关更多信息,建议您参考以下链接:

For more information, I suggest you refer the link below:

#WCF路由和消息安全性

#WCF Routing and Message Security

http://blogs.microsoft.co. il/applisec/2011/12/12/wcf-routing-and-message-security/