Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Company-Specific Roles via ASP.NET MVC Attributes

$
0
0

Is there a way to dynamically use Roles along with a specific Company ID or Client ID?  I am building a hosted application and need users to be assigned to a specific role FOR A SPEICIFIC CLIENT.  

So, for example, my client "ABC Inc," will have "Admin" and "User" roles.  My other client, "XYZ Inc," will have the same roles.  I would like to call something like this:

Roles.Add("ABCInc_Admin")

While I can make this call, I do not see a way to indicate that a certain MVC view requires this role.

Thanks, in advance.

-- G. Deward


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>