-
BlazorWeb.Server:
- a Blazor Web (Server) Client using OIDC authentication.
- Using Data from Resource Server 2
-
BlazorWeb.Server:
- a Blazor Web (Wasm) Client using OIDC authentication
- Using Data from Resource Server 2 adnd Resource Server 3
-
WebApp.Mvc:
- a Mvc Web App Client using OIDC authentication
-
WebApp.Razor:
- a Razor Web App Client using OIDC authentication
- Using Data from Resource Server 1
-
Client.Infrastructure:
- a shared libs between clients
- Using OpenApi to auto generate code
-
OpenIdDict MudBlazor Admin UI: -- in develop
- Identity.Core
- Identity.Infrastructure
- Identity.Provider
1. Resource_Server_1: test resoure server with NSwagger (OIDC Auth)
2. Resource_Server_2: test resoure server with Scalar (OIDC Auth)
3. Resource_Server_3: test resoure server with Swaggebuckle (OIDC Auth)
###1.init https
dotnet dev-certs https --trust
###2. Init Database
-
Change ConnectionStrings, example: "ConnectionStrings": { "DefaultConnection": "Server=localhost,Port=5432;Database=AuthServer_DB;User Id=pgadmin;Password=123DBP@ssw0rd;Include Error Detail=true" },
-
pwsh
-
Delete Data/Migrations directory
-
cd .\ Identity.Provider
-
dotnet ef migrations add "Add Identity Schema" --project ../Identity.Infrastructure/ --context ApplicationDbContext --output-dir Data/Migrations
-
dotnet ef database update
``` bash dotnet ef migrations add [Nem] --output-dir Data/Migrations dotnet ef database update
-
###3. Nuget packages for Identity.Provider
Npgsql Npgsql.EntityFrameworkCore.PostgreSQL
OpenIddict.AspNetCore OpenIddict.EntityFrameworkCore
System.Linq.Async Microsoft.EntityFrameworkCore.Design