ClaimsAuthorizationManager 从数据库中提取策略 [英] ClaimsAuthorizationManager pull policies from database
问题描述
我不熟悉用于授权用户访问资源的声明安全方法.我一直在进行大量研究,并且我读过的大多数站点都在 Web.config 文件中输入了 ClaimsAuthorizationManager 的策略.有哪些方法可以实现这一点?你能指出一些从数据库提供政策的链接吗?谢谢.
I'm new to the Claims Security approach for authorizing users access to resources. I've been doing a lot of research and the majority of sites I've read have the policies for ClaimsAuthorizationManager entered in Web.config file. What are some ways to accomplish this? Can you point me to some links where policies are served from a database? Thanks.
推荐答案
我也遇到了同样的问题.希望这些链接对您有所帮助.我所做的是实现我自己的 ClaimsAuthorizationManager
来获取当前用户的声明并使用 Thinktecture.IdentityModel 用于索赔检查.
I also ran into the same problem. Hopefully these links will help you. What I did was implemented my own ClaimsAuthorizationManager
to get the claims for the current user and used Thinktecture.IdentityModel for claims checks.
http://www.codeproject.com/Claims-基于身份验证和授权
这里有一些您可以使用的片段.https://github.com/maniserowicz/claims-talk/tree/master/Claims.WG.NET/_snippets
This has some snippets you can use. https://github.com/maniserowicz/claims-talk/tree/master/Claims.WG.NET/_snippets
这篇关于ClaimsAuthorizationManager 从数据库中提取策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!