Top "Roles" questions

In various access control systems, roles define a group of users and organize permissions into a more manageable structure.

Best Practices for Roles vs. Claims in ASP.NET Identity

I am completely new to the use of claims in ASP.NETIdentity and want to get an idea of best …

asp.net-mvc roles claims-based-identity
Rails: Undefined method 'to_sym'

I'm getting the following error in my deployed Rails 2.3.5 application: NoMethodError (undefined method `to_sym' for nil:NilClass): My local …

ruby-on-rails ruby roles declarative-authorization
Pass Ansible variables from one role (running on one host) to another role running on another host within the same playbook

I have a playbook that runs different roles on different hosts. Is it possible to pass a variable from one …

variables ansible roles ansible-playbook
Cannot drop PostgreSQL role. Error: `cannot be dropped because some objects depend on it`

I was trying to delete PostgreSQL user: DROP USER ryan; I received this error: Error in query: ERROR: role "ryan" …

postgresql roles database-administration
asp.net mvc decorate [Authorize()] with multiple enums

I have a controller and I want two roles to be able to access it. 1-admin OR 2-moderator I know …

asp.net-mvc authorization roles
Set Property Value on Master Page from Content Page

I need to pass data to a variable in my master page each time a page is loaded. I have …

asp.net master-pages roles
Angular2 routing canActivate and AuthGuard (JWT) with user role parameter

In this exaple project with JWT authentication we se how to allow only authenticated users to some route: import { RouterConfig } …

javascript authentication angular roles angular2-routing
How do you access the roles of the currentItem from a listview in QML?

I'm trying to access a role from a ListView in QML. Essentially, I have this in my QML: ListView { id: …

listview roles qml qabstractlistmodel
Is setting Roles in JWT a best practice?

I am considering to use JWT. In the jwt.io example I am seeing the following information in the payload …

api jwt token roles
How do I serve up an Unauthorized page when a user is not in the Authorized Roles?

I am using the Authorize attribute like this: [Authorize (Roles="Admin, User")] Public ActionResult Index(int id) { // blah } When a …

c# asp.net-mvc security roles