I am using Thinktecture Identity Server V3 (Oauth) for authentication with custom user store and I want to use role based authorization.
I am trying to use custom role provider to check for the roles. username attribute is null for IsInRole method. How can I add user data to current context?
Is it good idea to use RoleProvider in this case or add the roles as Claims? If I add them to Claims how can I use [Authorize] attribute? Do I need to write a custom Authorize attribute?