In my previous post i asked how to check/add user roles, but now i face another problem. Since microsoft moved to the new Identity 2.0, AuthorizeAttribute doesn't work anymore.
Is there any substitute filter for the Authorize?
EDIT:
I've made some tests and [Authorize(Users = "SOME_ID")] works, but not [Authorize(Roles = "Admin")].
And i verified if the user was really in that role (Admin)
Authorize
works fine. Internally it is checking the claims cookie for the existence of a role. You should post your code where you give the user his claims and make sure the roles are in there. – Polygamy