studasd / Brizhak_SecuringAPIWithDuendeServerIdentityServer6

Brizhak_Api2_MagicVilla_API Part 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Securing API with Duende Server (Identity Server 6)

In this project we will take an API application with authentication using .NET identity and we will modify it to use Identity Server(Duende Server 6) for authentication and authorization. Duende Server 6 uses Razor Pages as default UI pages and we will see how to add login logout and register functionality.

Preparation

The IdentityServer templates for the dotnet CLI are a good starting point for the quickstarts. To install the templates open a console window and type the following command:

dotnet new --install Duende.IdentityServer.Templates

MagicVilla_Identity

  • install packages
Duende.IdentityServer.AspNetIdentity
Microsoft.AspNetCore.Identity.EntityFrameworkCore
Microsoft.AspNetCore.Authentication.OpenIdConnect
Microsoft.AspNetCore.Identity.UI
Microsoft.EntityFrameworkCore.SqlServer
Microsoft.EntityFrameworkCore.Tools
  • run the project

MagicVilla_Web

  • install packages
Microsoft.AspNetCore.Authentication.OpenIdConnect
  • run the Identity, API and Web. Then go to login

About

Brizhak_Api2_MagicVilla_API Part 3


Languages

Language:C# 57.5%Language:HTML 17.4%Language:Less 12.4%Language:CSS 12.4%Language:JavaScript 0.2%Language:SCSS 0.1%