"C #" RBAC Permission framework

Source: Internet
Author: User

"C #" RBAC Permission framework

I. Noun interpretation

1. User: Login account, and role hook, can have multiple roles

2. Role: The role that the account belongs to, and the permission hook, can have multiple permissions

3. Permissions: Role-owned operations rights, sub-licenses and prohibitions

The permissions that are not available in the license list are inaccessible, and the permissions in the Forbidden list are not accessible, where the priority is higher than the license

Forbidden role: If you need to prohibit a user of a permission, if you modify the role of the Permissions association, the role associated with the user rights will be changed, this is not possible. You can disable this

Two. Design

1. Database design: User single table, role single table, privilege list, user-Role association table, role-Permission Association table

2. Program Design: User and login account, privileges and functions in the program, role plays the role of linked accounts and functions

"C #" RBAC Permission framework

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.