C#的WinForms用户/权限管理 [英] C# WinForms User/Permission management

查看:388
本文介绍了C#的WinForms用户/权限管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能给我提供了实现用户身份验证和授权1角色或组的基础是什么?

Can anyone provide me an example WinForms application that implements the concept of User authentication and authorization one the basis of Roles or Groups?

应用程序应该允许用户访问主菜单的角色的基础上。

The application should allow access of users to the main-menu on the basis of their roles.

推荐答案

如果您是从数据库表中建立菜单,你可以安全通过它加入到排除的权限的基础上,记录另一个表或视图修剪集。

If you are building the menu from a database table, you can security trim it by joining it to another table or view that excludes records on the basis of the permissions set.

下图所示为用户设置角色权限的基础知识,并包含窗体上的安全性修剪个别控制以及几个其他表。结果

The diagram below illustrates the basics of setting up role permissions for users, and contains a couple of other tables for security trimming individual controls on the form as well.

在Windows控制基于安全窗体应用程序结果
<一href=\"http://www.simple-talk.com/dotnet/windows-forms/controls-based-security-in-a-windows-forms-application/\">http://www.simple-talk.com/dotnet/windows-forms/controls-based-security-in-a-windows-forms-application/
结果。

Controls Based Security in a Windows Forms Application
http://www.simple-talk.com/dotnet/windows-forms/controls-based-security-in-a-windows-forms-application/
.

这篇关于C#的WinForms用户/权限管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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