.net - How do I implement a custom role provider which supports sub roles? -


How can a custom roll provider be applied, on which the parents and child have roles?

According to the general role provider functionality, I need to get high level role permissions. However, I also need to allow further break in sub roles. I bumped into the idea of ​​sub-permissions and for example role, but I want to make a native solution that allows sub roles.

For example:

[IT]

[IT]> [Admin]

[extranet]

< In this scenario, the role of "Admin" actually has 2 different roles, one for the other extranet scenarios for IT. [ADRANET]> [ADMINET]> [ADMINET]

Ideally, there is no connection between 2 "Admin" roles as they are unique sub roles.

[edit]: After Igor's comments, I think I should explain Aspnetdb is already hosting several applications and therefore it is not possible to use the application name to separate the sub-names As it is already being used to separate roles by applications.

1) Use the aggregation of permissions, why do you use inheritance? Just allocate YouTube to IT and Admin roles and their permissions will be collected.

2) Using different administrators (1) and admin (2). If I understand you then it will be 2 separate applications (otherwise name an administrator by another name)

Luck.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -