public static IServiceCollection AddAuthenticationAndAuthorization(this IServiceCollection services, IConfiguration configuration) { services.AddAuthentication(configuration); Requirement.AddAuthorization(services); return(services); }