feat: update OAuth2 client configuration for Fengling Console
This commit is contained in:
parent
d92d51fb3e
commit
5a7ebaf20d
@ -126,19 +126,19 @@ public static class SeedData
|
|||||||
consoleClient = new OAuthApplication
|
consoleClient = new OAuthApplication
|
||||||
{
|
{
|
||||||
ClientId = "fengling-console",
|
ClientId = "fengling-console",
|
||||||
ClientSecret = "console-secret-change-in-production",
|
ClientSecret = null,
|
||||||
DisplayName = "Fengling 运管中心",
|
DisplayName = "Fengling Console",
|
||||||
RedirectUris = new[] {
|
RedirectUris = new[] {
|
||||||
"http://console.fengling.local/auth/callback",
|
"http://localhost:5777/auth/callback",
|
||||||
"http://localhost:5777/callback"
|
"https://console.fengling.local/auth/callback"
|
||||||
},
|
},
|
||||||
PostLogoutRedirectUris = new[] {
|
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" },
|
GrantTypes = new[] { "authorization_code", "refresh_token" },
|
||||||
ClientType = "confidential",
|
ClientType = "public",
|
||||||
ConsentType = "implicit",
|
ConsentType = "implicit",
|
||||||
Status = "active",
|
Status = "active",
|
||||||
CreatedAt = DateTime.UtcNow
|
CreatedAt = DateTime.UtcNow
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user