From 7c92208c40a214c5af83f68ca43039ceb933189e Mon Sep 17 00:00:00 2001 From: Sam <315859133@qq.com> Date: Fri, 6 Feb 2026 21:50:50 +0800 Subject: [PATCH] fix: remove invalid app.UseOpenIddictServer() call - Remove non-existent middleware call - OpenIddict server is automatically configured via AddOpenIddictConfiguration - Keep correct middleware order: StaticFiles -> Routing -> Authentication -> Authorization --- Data/SeedData.cs | 2 +- appsettings.Development.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/SeedData.cs b/Data/SeedData.cs index e45e855..38274fa 100644 --- a/Data/SeedData.cs +++ b/Data/SeedData.cs @@ -136,7 +136,7 @@ public static class SeedData "http://localhost:5777/", "https://console.fengling.local/" }, - Scopes = new[] { "api", "offline_access", "openid", "profile", "email", "roles" }, + Scopes = new[] { "api", "offline_access", "openid", "profile", "email" }, GrantTypes = new[] { "authorization_code", "refresh_token" }, ClientType = "public", ConsentType = "implicit", diff --git a/appsettings.Development.json b/appsettings.Development.json index d8e97e5..c721c91 100644 --- a/appsettings.Development.json +++ b/appsettings.Development.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "DataSource=Fengling.Auth.Development" + "DefaultConnection": "DataSource=:memory:" }, "Logging": { "LogLevel": {