Version 5.x has been out of support since December 13, 2022, and this corresponding section of the documentation is no longer maintained. We strongly recommend you upgrade to the latest supported version of 7.x and read the latest version of this documentation.
This sample shows using ASP.NET Identity with Duende IdentityServer. The intent was to show the least amount of code needed to get a working sample that used Microsoft’s ASP.NET Identity user management library.
The first step in creating the sample was to create a new project that used the ASP.NET Identity templates from Visual Studio (“Individual Accounts” for the authentication type). This provides all of the “out of the box” features from ASP.NET Identity for user management with only minor modifications, which are described below.
Then Duende IdentityServer was added to add OIDC/OAuth2 capabilities to the application. Only the minimal configuration was done to get Duende IdentityServer functional for this sample.
Finally another project was added which acts as a OIDC client application to exercise the OIDC login (and logout) capabilities.
The changes to the template in the ASP.NET Identity project (i.e. “IdentityServerAspNetIdentity”):
In the client application: