public void ConfigureServices(IServiceCollection services) { services.AddMvc(); services.AddAutoMapper(); Ioc.RegisterDependencies(services, Configuration); services.AddOAuthAuthentication(Configuration); services.AddAuthorization(p => Policies.Configure(p)); }