Set up: ASP.NET Core Angular Auth0
So I have created an autorization policy like this:
services.AddAuthorization(options => {
options.AddPolicy("EmailConfirmed", policy =>policy.RequireClaim
("https://webatom.auth0.com/userinfo/email_verified","true")); });
I want to get the email_verified value and if its true then I want to allow the api cals in the MVC Controller
So after this I secure the actions with
[Authorize("EmailConfirmed")]
However I keep on getting a 403 forbidden. Must be something with the required claim type. Has anyone come across such issue?