12
Answers

asp.net core razor pages. Authorize access for group of users

Marius Vasile

Marius Vasile

4y
1.2k
1
My project contains several modules, each of it having its own folder in /Pages. The application may be used by several companies and I've already implemented a role base authorization for users but I want to limit access to each project folders for each company.
 
What I have in mind is to have something similar with Roles
 
  1. [Authorize(Roles = "Management,Safety,Issuer,Receiver,IsoCert")]  
but to be able to assign companies codes for accessing folders. How can this be achieved?
Answers (12)