Skip to content

yogyogi/ASP.NET-Core-Duende-IdentityServer-authentication-and-authorization-with-Identity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Core – Duende IdentityServer authentication and authorization with Identity

This is the implementation of Duende IdentityServer in ASP.NET Core app with ASP.NET Core Identity to provide authentication and authorization features. The complete tutorial is provided at - Implement Duende IdentityServer.

Features

  1. ASP.NET Core 8.0 version.
  2. Server – ASP.NET Core app + Identity + Duende IdentityServer
  3. ASP.NET Core Identity integration process
  4. Duende IdentityServer integration process
  5. Client – ASP.NET Core app with secured resource
  6. Configure OpenID Connect (OIDC)
  7. Showing the user login status
  8. Testing the Duende Identity Server apps

Getting Started

  1. Simply Download the repository. You will get 2 projects - Server and Client.
  2. In the Server app perform migrations.
add-migration Migration1
Update-Database
  1. From the Server app create a new Identity User.
  2. Now run the Client App. Click the "Secure" link. You will be rediected to Duende IdentityServer for login. Perform login and access this page.

If any confusion see the tutorial whose link is provided at the top.

Don't forget to view the connection string of Identity Database given on appsettings.json file on "Server" app.

User Interface

Here we can register a new Identity User.

Register User

Testing

Let's test the full working.

Access Secure page

Secure Page

Perform Login on Duende Identity Server

login feature

View the Secure page

View Secure Page

In the secure page you will see the claims of the Logged in user.

Support

Your support of every $5 will be a great reward for me to carry on my work. Thank you !

Buy Me A Coffee Paypal Me