📅  最后修改于: 2022-03-11 14:48:39.028000             🧑  作者: Mango
services.AddAuthorization(o =>
{
o.AddPolicy("FirstStepCompleted", policy => policy.RequireClaim("FirstStepCompleted"));
o.AddPolicy("Authorized", policy => policy.RequireClaim("Authorized"));
});