Ejemplo n.º 1
0
        // 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();
        }
Ejemplo n.º 2
0
        // 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();
        }
Ejemplo n.º 3
0
        // 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);
        }