Good day, I am using .Net Core 3.1 Web app and Azure Active Directory B2C for user login, so far it works well and as expected. Now i want to use the Roles, Policies and Claims which are configured in per user in the sql server. Each user id (azure b2c object id) is mapped to Roles.
How do i retrieve them in the startup.cs file ? I need to use similar to :
services.AddAuthorization(options =>
{
options.AddPolicy("AdminAccess", policy => policy.RequireRole("Admin"));
});
Thank you very much advance. Regards