We want to allow users, and if they are authorized, we want to add their roles and permissions to the user and add this to the IPrinciple
We have two ways to do this: do it in global.asax Application_AuthenticateRequest another, to create an attribute that inherits from AuthorizeAttribute
Is there any brilliant good choice here?
source share