有关基于WCF消息的安全性的问题 [英] Problem Regarding WCF Message Based Security

查看:72
本文介绍了有关基于WCF消息的安全性的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在开发一个基于WCF消息的安全性项目,其中使用了UserNamePassword客户端凭据,并且使用的绑定是wsHttpBinding.我还创建了X.509证书并使用基于Claim的授权提供了对声明的访问权限.为每个方法调用对客户端进行身份验证并为每个方法调用提供客户端凭据.我想告诉您,我在界面上使用了2个按钮.两个按钮都调用相同服务的不同方法.在一个按钮中,我传递了客户端凭据和在另一个实例中,我只是创建了一个实例来调用该方法.当我单击传递了客户端凭据的按钮时,它在对客户端进行身份验证之后调用了该方法,但是当我单击仅创建了实例的按钮时,它引发了错误未提供用户名.在客户端凭据中指定用户名".我不想在每次调用该方法时对客户端进行重新身份验证. ng为我提供了有关如何实现它的完整指南,并考虑到我是WCF的新手,因此请向我提供逐步的帮助和完整的帮助.以便以后可以访问每种方法.请在此ASAP中为我提供帮助.谢谢

Hello,
I am developing a project based on WCF Message Based security with UserNamePassword Client Credentials and Binding used is wsHttpBinding.I have also created X.509 certificates and providing access to claims using Claim based Authorization.Everything is working fine but my problem stands on re-authentication of client for every method call and providing client credentials for every method call.I want to tell you that I have taken 2 buttons on the interface.Both buttons are calling different methods of same service.In one button I have passed Client Credentials and in another one I simply created an instance to call the method.When I click on the button in which Client credentials are passed it calls the method after authenticating the client but when I click on the button in which only instance is created it throws an error "UserName is not provided.Specify UserName in Client Credentials".I don''t want to re-authenticate the client on every call of the method.If I am doing wrong provide me the full guidance on how to implement it and do take into consideration that I am new in WCF so provide me the step by step and complete help.I am not getting the way on how to provide the credentials of the client just once so that every method can be accessed after that.Please help me in this ASAP.Thanks

推荐答案

Hello Nupur,

查看此链接.希望对您有帮助

http://www.dotnetfunda.com/articles/article388.aspx [
Hello Nupur,

Check out this link. Hope it will help you

http://www.dotnetfunda.com/articles/article388.aspx[^]


这篇关于有关基于WCF消息的安全性的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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