简体   繁体   English

C#基于角色的桌面应用程序管理

[英]C# Role Based Management of Desktop application

I am very much familiar with handling roles (role membership) in ASP.NET but i want to have the same functionality of authentication and authorization for my desktop application. 我非常熟悉在ASP.NET中处理角色(角色成员资格),但我希望为我的桌面应用程序提供相同的身份验证和授权功能。 Do C# / .Net Framework offers such functionality. C#/ .Net Framework是否提供此类功能。
Just for information, i intend using MySQL as database. 仅供参考,我打算使用MySQL作为数据库。 If any framework providing the role based management is implemented in other database, i will be happy to switch to it. 如果任何提供基于角色的管理的框架在其他数据库中实现,我将很乐意切换到它。

You can utilize membership libraries in a desktop application and even specify an AD provider if you don't want to use a database to store the membership information and rather rely on domain security. 您可以在桌面应用程序中使用成员资格库,如果您不想使用数据库存储成员资格信息而是依赖域安全性,则甚至可以指定AD提供程序。

The membership is located in the System.Web dll and you will have to reference this and configure your app.config accordingly in your desktop project. 成员资格位于System.Web dll中,您必须在桌面项目中引用它并相应地配置app.config。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM