WCF服务安全性进行验证和授权

编程入门 行业动态 更新时间:2024-10-27 06:23:14
本文介绍了WCF服务安全性进行验证和授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

首先,我对我的英语道歉... 正如我在标题中写道,我需要保护我的WCF服务。 我总是用ClientCredentialType =证书用于信息安全模式,检查以这种方式:

First of all I apologize for my english... As I wrote in title I need to secure my WCF Service. I always used message security mode using ClientCredentialType="Certificate", checking in this way:

<serviceCertificate findValue="cn=abc" storeLocation="LocalMachine" storeName="TrustedPeople" x509FindType="FindBySubjectDistinguishedName"/> <clientCertificate> <authentication certificateValidationMode="PeerTrust"/> </clientCertificate>

此配置运作良好,但现在我需要不同的权限,以通过身份验证的客户端分配的,我需要换句话说授权。 任何想法? 谢谢, 阿尔贝托

This configuration worked well, but now I need to assign different privileges to the authenticated clients, I need Authorization in other words. Any idea? Thanks, Alberto

推荐答案

听起来你的角色之后。看看这个 codePLEX章和的 codePLEX WCF安全准则。它提供了大量的不同的方案细节,我发现它非常有用设立WCF服务时。

Sounds like you're after Roles. Check out this Codeplex Chapter and the Authorization section of the Codeplex WCF Security Guidelines. It provides plenty of details of different scenarios and I found it very useful when setting up WCF services.

更多推荐

WCF服务安全性进行验证和授权

本文发布于:2023-11-11 18:48:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579278.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安全性   WCF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!