Hello,
Is it possible to use the ASP.Net Identity Role Provider (the SQL Tables provided when selecting Individual user Accounts) with Windows Authentication? I was able to do this using ASP.NET 3.5 (not MVC) but i am now testing MVC 5. So far i have managed to
get the Windows user and new role added to the tables, and add the user to the role, but when i try and use the [Authorize(Roles = "xxxxxx")] through the controller nothing happens, i am able to access the view if i am in the role or not. I am trying to add
the [Authorize] to the HomeController:
[Authorize(Roles = "rolename")]
public ActionResult Admin()
{
return View();
}
I have searched online and found articles relating to filters but cannot see anything specific, most point to using AD groups to manage roles but i cannot do this as a new role could be added ...
Go to the complete details ...