Identity Server - Example
07 Feb 2022- Identity Server - Example
- Identity Server - EF to PostgreSQL
- Identity Server - Dockerization (1)
- Identity Server - Dockerization (2)
- Identity Server - Kubernetes
It’s been nearly 2 years since I posted Music Store, a few things had happened:
- Microsoft released .NET Core 3.1, .NET 5 and then .NET 6
- Duende commercialized Identity Server, and released Duende Identity Server v5 and then v6
- Implicit grant flow is deprecated, code + PKCE is recommended
Instead of updating my Music Store, I decided to continue the free version of Identity Server (v4) and use Scott Brady’s Getting Started with IdentityServer 4 as an example. In his amazing blog, he has clearly described the OAuth 2.0, OpenID Connect, and the relationship between Clients, Resources, Scopes and Users.
I forked Scott’s repo to my Identity Server 4, the master branch is Duende Identity Server v5.2, the IdentityServer4 is the branch that built upon Identity Server 4. It is EF Code First, therefore the demo data will be populated into MS SQLServer Express automatically at the first initialization.
Here is the architecture of the example:
- View Privacy page - redirect to Identity Server login (usename: scott, password: Password123!)
- Issue access token and redirect back to Client
- Consume API with access token
- Validate token from Identity Server
- Respond results