数据库的自定义授权 [英] Custom Authorization from Database

查看:114
本文介绍了数据库的自定义授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能给我一些关于授权的链接教程吗?

我想在数据库中进行自定义授权,用户和链接页面。



EXP:

用户A可以访问第1,2页

用户B只能访问第2页

用户C可以访问第1,2页,3



所有链接页面都来自DB,所以如果我们要插入新页面,我们就不会触摸硬编码。

I 我正在使用MVC 3.



感谢''s。

解决方案


请参考以下链接:

文章:

MVC自定义身份验证,授权和角色实现 [ ^ ]

MVC中具有授权属性的强类型角色 [ ^ ]

Asp.net:会员资格和授权 [ ^ ]

类似主题:

asp.net mvc授权使用角色 [ ^ ]

MVC 3动态a多角色和用户的虚假化[[a href =http://stackoverflow.com/questions/6404254/mvc-3-dynamic-authorization-of-multiple-roles-and-users\"target =_ blank title =新窗口> ^ ]



你需要检查不要进行基于角色的授权检查;基于活动的检查 [ ^ ]。





--Amit

Can anyone give me some link tutorial about Authorization?
I want to make custom authorization, user and link page in Database.

EXP :
User A can access page 1,2
User B can access page 2 only
User C can access page 1,2,3

All link page take from DB, so we didn''t touch hardcode if we want to insert new page.
I''m using MVC 3.

Thank''s.

解决方案

Hi,
Refer the links below:
Articles:
MVC Custom Authentication, Authorization, and Roles Implementation[^]
Strongly Typed Roles in MVC with Authorize Attribute[^]
Asp.net : Membership and Authorization[^]
Similar Threads:
asp.net mvc authorization using roles[^]
MVC 3 dynamic authorization of multiple roles and users[^]

You need to check Don’t Do Role-Based Authorization Checks; Do Activity-Based Checks[^] also.


--Amit


这篇关于数据库的自定义授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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