Setting up IdentityServer4

Once the project is created, add the IdentityServer4 package in your authorization server through NuGet:

In the ConfigureServices method of the Startup class, we have to first add the Identity Server by calling the AddIdentityServer method as follows:

    public void ConfigureServices(IServiceCollection services) 
{
services.AddIdentityServer();
}

Next, we will use the Identity Server by calling the UseIdentityServer method in the Configure method in the Startup class as follows:

    public void Configure(IApplicationBuilder app,
IHostingEnvironment env, ILoggerFactory loggerFactory)
{
app.UseIdentityServer();
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.17.154