Authorization Server using IdentityServer4 4.1.2 on ASP.NET Core 3.1.
This is my attempt at improving my understanding of modern authentication, that is, OpenID Connect & Oauth 2.0 and how these two protocols are implemented in IdentityServer4 4.1.2 on ASP.NET Core 3.1
- Visual Studio 2019 or greater
- ASP.NET Core 3.1
- Clone the project.
- Open the solution file
AuthorizationServer.sln
on Visual Studio. - Press F5 to start the build and run the application.
Copyright © 2022 Felipe Romero
Export ASP.NET Core's development certificate (the one that gets automatically created when you install .NET)
to %APPDATA%\ASP.NET\https\AuthorizationServer.pfx
(notice the filename is the same as your executing assembly).
dotnet dev-certs https -ep "$Env:APPDATA\ASP.NET\https\AuthorizationServer.pfx" -p '12345'
Add the following setting to your appsettings.json
file.
The password must match the password used for the exported certificate in the previous step.
"Kestrel": {
"Certificates": {
"Development": {
"Password": "12345"
}
}
}
I'm taking guidance from these sources to implement IdentityServer4 with ASP.NET Core Identity.