Skip to content

Authorization Server using IdentityServer4

License

Notifications You must be signed in to change notification settings

feliperomero3/AuthorizationServer

Repository files navigation

Authorization Server using IdentityServer4

Build status

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

Prerequisites

  • Visual Studio 2019 or greater
  • ASP.NET Core 3.1

Getting started

  1. Clone the project.
  2. Open the solution file AuthorizationServer.sln on Visual Studio.
  3. Press F5 to start the build and run the application.

License

MIT License

Copyright © 2022 Felipe Romero

Appendix

How to manually set Kestrel's HTTPS configuration with a development certificate file

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"
        }
    }
}

Sources

I'm taking guidance from these sources to implement IdentityServer4 with ASP.NET Core Identity.

About

Authorization Server using IdentityServer4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages