I am trying to lock down our "admin" page to only admins using Asp.net Identity (we are building in MVC5). I can get [Authorize(Users="admin")] to work but can not get [Authorize(Roles="Admin")] to work.
I have created the role in the dbo.AspNetRoles table and then associated the account in the AspNetUserRoles by pairing the user GUID to the ID in the aspnetroles table.
I have seen in previous editions of MVC you have had to get into web.config to add some lines. Can anyone help point me in the right direction?
Have you specified in the web.config that you are going to use roles?