简体   繁体   中英

What alternatives are there for asp.net forms authentication?

We are developing a web app that will have a pretty complex user and permission system.

The general idea is that we have 3 levels of security:

  • a simple user - that can only access basic data that is in a data repository
  • a manager - that can open up data repositories
  • a superuser - that can open up repository factories.

each repository contains various data types(text, images, etc etc).

We are looking for authentication methods that will allow us: 1. Scalability. 2. Customization. 3. To create permissions that will effect the GUI + deny access to certain pages. 4. To create predefined roles - that will allow for easy setup of new users. 5. To create custom roles for specific users - allowing them permission sets that are different from the predefined roles.

Thanks in advance

您在这篇文章中所讲的是对ASP.NET Membership系统授予的事物类型的准确描述,为什么不使用它呢?

You can do everything you require using the built-in ASP.NET Membership, Roles, and Profile functionality. I recommend checking out Scott Mitchell's excellent series of articles on how to use and customize this functionality.

It does sound like the existing framework would work, or that you could create a custom membership/roles provider to add some of the existing features you are looking for. It depends on the requirement details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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