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
This commit is contained in:
Sam 2026-02-06 21:50:50 +08:00
parent 5a7ebaf20d
commit 7c92208c40
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ public static class SeedData
"http://localhost:5777/", "http://localhost:5777/",
"https://console.fengling.local/" "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" }, GrantTypes = new[] { "authorization_code", "refresh_token" },
ClientType = "public", ClientType = "public",
ConsentType = "implicit", ConsentType = "implicit",

View File

@ -1,6 +1,6 @@
{ {
"ConnectionStrings": { "ConnectionStrings": {
"DefaultConnection": "DataSource=Fengling.Auth.Development" "DefaultConnection": "DataSource=:memory:"
}, },
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {