I need to enable my admin user to change access permissions for users on the fly, such that they can create new Roles and add permissions to those Roles and assign that role to any user at run time.
I don't want to 'set' the roles during development, as in [Authorize(Roles="Role1, Role2")] etc because after development if i add roles to any user then again i have to recompile the code and copy the changed dll to project bin folder.
we often hard code the role name with authorized attribute but what if i need to do this kind of association at run time in asp.net mvc project. is it possible please discuss all your thought.
i have seen your have good control on role base access system development. so please guide me how can i add roles to action or controller at run time.if possible please discuss this topic with sample code.
thanks
I don't want to 'set' the roles during development, as in [Authorize(Roles="Role1, Role2")] etc because after development if i add roles to any user then again i have to recompile the code and copy the changed dll to project bin folder.
we often hard code the role name with authorized attribute but what if i need to do this kind of association at run time in asp.net mvc project. is it possible please discuss all your thought.
i have seen your have good control on role base access system development. so please guide me how can i add roles to action or controller at run time.if possible please discuss this topic with sample code.
thanks
tbhattacharjee