From 5a7ebaf20df29b2088d273e9e88ec15f6ee14666 Mon Sep 17 00:00:00 2001 From: Sam <315859133@qq.com> Date: Fri, 6 Feb 2026 01:47:41 +0800 Subject: [PATCH] feat: update OAuth2 client configuration for Fengling Console --- Data/SeedData.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Data/SeedData.cs b/Data/SeedData.cs index 67f8efc..e45e855 100644 --- a/Data/SeedData.cs +++ b/Data/SeedData.cs @@ -126,19 +126,19 @@ public static class SeedData consoleClient = new OAuthApplication { ClientId = "fengling-console", - ClientSecret = "console-secret-change-in-production", - DisplayName = "Fengling 运管中心", + ClientSecret = null, + DisplayName = "Fengling Console", RedirectUris = new[] { - "http://console.fengling.local/auth/callback", - "http://localhost:5777/callback" + "http://localhost:5777/auth/callback", + "https://console.fengling.local/auth/callback" }, PostLogoutRedirectUris = new[] { - "http://console.fengling.local/", - "http://localhost:5777/" + "http://localhost:5777/", + "https://console.fengling.local/" }, - Scopes = new[] { "openid", "profile", "email", "api", "offline_access" }, + Scopes = new[] { "api", "offline_access", "openid", "profile", "email", "roles" }, GrantTypes = new[] { "authorization_code", "refresh_token" }, - ClientType = "confidential", + ClientType = "public", ConsentType = "implicit", Status = "active", CreatedAt = DateTime.UtcNow