Considering the following jwt token:
I use the following code to protect my aspnet core webapi:
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApi(jwtBearerOptions =>
{
configuration.Bind("AzureAdB2C", jwtBearerOptions);
},
microsoftIdentityOptions => { configuration.Bind("AzureAdB2C", microsoftIdentityOptions); });
How can I add validation to above code to validate the azp calim?