=== Program.cs === using LadaIdentity.Infrastructures.Startup; var builder = WebApplication.CreateBuilder(args); builder.Logging.ClearProviders(); builder.Logging.AddConsole(); // Add services to the container. builder.Services.AddControllersWithViews(); builder.Services.Config(builder.Configuration); var app = builder.Build(); app.ConfigAndRunApp(); === appsettings.json === { "ConnectionStrings": { "LadaConnection": "Server=192.168.1.13;Database=Ladaer;User Id=ladadbm;Password=0gcHVHvCyuZTbKw;MultipleActiveResultSets=true;TrustServerCertificate=true" }, "ApiScopes": [ { "Name": "BackEnd", "DisplayName": "Scope can accessed by Staffs" } ], "Clients": [ { "ClientType": 2, "ClientId": "Ladaer", "AllowedGrantTypes": [ "password" ], "ClientSecrets": "@lada4*DQMvx8HU*I&7*WXd83*t^O8@", "AllowedScopes": [ "openid", "profile", "BackEnd", "offline_access", "IdentityServerApi" ], "AccessTokenLifetime": 84600 } ], "AppConfigs": { "CertThumbprint": "", "CertStoreName": "" }, "AutConfig": { "Authority": "https://localhost:7014/" }, "SwaggerAuth": { "UserName": "lada", "Password": "lada2023" }, "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*" }