public void ConfigureServices(IServiceCollection services) { services.AddAuthorization(config => { config.AddPolicy("IsDeveloper", policy => policy.RequireClaim("IsDeveloper", "true")); }); }