Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role base authorization not working ? #38

Open
TANIAX opened this issue Sep 27, 2023 · 0 comments
Open

Role base authorization not working ? #38

TANIAX opened this issue Sep 27, 2023 · 0 comments

Comments

@TANIAX
Copy link

TANIAX commented Sep 27, 2023

Hi,

I am working on implementing role-based authorization within your template.

In the Startup.cs of Infrastructure, I have already included the .AddRoles<IdentityRole>() configuration.

Furthermore, I have successfully added roles to the database, assigned roles to users, and incorporated roles into JWT claims.

However, I am encountering an issue where, even though I possess the required role, I consistently receive a 403 error when attempting to access methods protected by that role.

What am I missing here ?

Thank you in advance for your support.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant