// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddIdentityServer() .AddInMemoryIdentityResources(ConfigResources.GetIdentityResources()) .AddInMemoryApiResources(ConfigResources.GetApiResources()); services.AddControllers(); }
// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddIdentityServer() .AddInMemoryIdentityResources(ConfigResources.GetIdentityResources()) .AddInMemoryApiResources(ConfigResources.GetApiResources()) .AddInMemoryClients(Clients.GetClients()) .AddTestUsers(Users.GetTestUsers()) .AddDeveloperSigningCredential(); services.AddControllers(); }
// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddIdentityServer() .AddInMemoryIdentityResources(ConfigResources.GetIdentityResources()) .AddInMemoryApiResources(ConfigResources.GetApiResources()) .AddInMemoryClients(Clients.GetClients()) .AddTestUsers(Users.GetTestUsers()) .AddDeveloperSigningCredential(); services.AddControllers(); services.AddMvc(options => options.EnableEndpointRouting = false); }