// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddMvc(); // registers the IdentityServer services in DI and // it registers In-memory store for runtime state // for production scenarios you need a persistent or shared store // TODO: remove InMemory configs for production release :) services.AddIdentityServer() .AddDeveloperSigningCredential() .AddTestUsers(InMemoryConfiguration.GetTestUsers().ToList()) .AddInMemoryIdentityResources(InMemoryConfiguration.GetIdentityResources()) .AddInMemoryClients(InMemoryConfiguration.GetClients()); }