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