This is the code base for my 5 part article series Securing ASP.Net Core Web API with Identity Server:
- Part 1: Setting up and configuring Identity Server
- Part 2: Moving Identity Server configuration to the database using Entity Framework Core
- Part 3: Configuring ASP.Net Identity to work with Identity Server using Entity Framework Core
- Part 4: User authentication and authorization with Identity Server
- Part 5: Creating, configuring and securing an ASP.Net Core API (using Swagger UI)
- C#
- ASP.Net Core 3.1
- Identity Server 4
- ASP.Net Identity
- Entity Framework Core 3.1
- Swagger
- Visual Studio 2019 16.6.3
- SQL Server Express
- Clone the repository
- Checkout the master branch
- Open the AspNetCoreIdSrv.sln file in Visual Studio
- Update the appsettings.json file in IdentityServer.csproj project and the connection string to point to your instance of SQL Server
- Migrations are in the Migrations folder in respective projects, so all that is required is to:
dotnet ef database update --context ApplicationDbContext