baratgabor/MyWarehouse

Role base authorization not working ?

TANIAX opened this issue · 0 comments

TANIAX commented

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,