如何使用SQL Server在ASP.NET中实现角色库安全性 [英] How to implement the Role base Security in asp.net using Sql Server

查看:67
本文介绍了如何使用SQL Server在ASP.NET中实现角色库安全性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我对我的项目有要求.

我对角色库安全"一无所知.

请任何人帮助我.

Hi Guys, I have a requirement in my Project.

I have no idea in Role base Security .

Please any one help me.

推荐答案


一个简单的基于角色的访问就像,

1.为每个用户分配一些角色.登录时,我们从sql中获取该用户的角色(例如).
2.基于该角色,我们需要为该页面启用/禁用一些功能.

很少有链接可以帮助您入门.

具有表单身份验证的基于角色的安全性 [ RoleBasesAccessUsingCSharpandXML [ Introduction-to-RoleBased- NET安全性 [
Hi,
A simple role based access would be like,

1.Each user would be assigned with some roles.At the time of login, we fetch the roles for that user from sql (say).
2.Based on that role,we need to enable/disable few functionalities for that page.

Few links to get you started with.

Role-based Security with Forms Authentication[^]
RoleBasesAccessUsingCSharpandXML[^]
Introduction-to-RoleBased-Security-in-NET[^]

Hope this gives you a idea.


这篇关于如何使用SQL Server在ASP.NET中实现角色库安全性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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