feat: update OAuth2 client configuration for Fengling Console

This commit is contained in:
Sam 2026-02-06 01:47:41 +08:00
parent d92d51fb3e
commit 5a7ebaf20d

View File

@ -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