Role-Based authorization not working in asp.net core 2.1 #11413
Labels
area-auth
Includes: Authn, Authz, OAuth, OIDC, Bearer
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Describe the bug
I followed the instruction on documentation and online about the role authorization, but the authorize since doesn't work even after I add the role type to my database. It always lets the user access the resources no matter what the user role is. I don't see why and have not idea what I am missing in my startup. Any helps will be appreciated.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should reject the user request to the API, but it doesn't.
My startup.cs
Additional context
Thanks, guys. I will update more information later.
The text was updated successfully, but these errors were encountered: