1 Installation and configuration of IdentityServer4 - AbassiOmar/IdentityServer4 GitHub Wiki
-
Add IentityServer4 package to your solution
-
Configure your project to use identityserver in ConfigurationService methode add services.AddIdentityServer(); now w'll add clients ,apiRessource adn identityRessource to our server by usinf a local file later we w'll use a database store for that. so w'll add a Config.cs file to our project
- configure our project to use this ressource:
services.AddIdentityServer() .AddInMemoryClients(Config.Clients) .AddInMemoryApiResources(Config.Apis) .AddInMemoryIdentityResources(Config.Ids);- add the IdentityServer middelWare to Configure methode in our startup.cs
app.UseIdentityServer();
-
Run server: If you run the server and navigate the browser to http://localhost:5000/.well-known/openid-configuration you should see the so-called discovery document