feat: configure OAuth client for Fengling Console
- Add localhost:5777 callback URIs to fengling-console client - Register OIDC scopes: openid, profile, email - Add support for development environment
This commit is contained in:
parent
c998686ab6
commit
635e3b6c86
@ -34,7 +34,13 @@ public static class OpenIddictSetup
|
||||
.AllowRefreshTokenFlow()
|
||||
.RequireProofKeyForCodeExchange();
|
||||
|
||||
options.RegisterScopes("api", "offline_access");
|
||||
options.RegisterScopes(
|
||||
"openid",
|
||||
"profile",
|
||||
"email",
|
||||
"api",
|
||||
"offline_access"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -127,9 +127,15 @@ public static class SeedData
|
||||
ClientId = "fengling-console",
|
||||
ClientSecret = "console-secret-change-in-production",
|
||||
DisplayName = "Fengling 运管中心",
|
||||
RedirectUris = new[] { "http://console.fengling.local/auth/callback" },
|
||||
PostLogoutRedirectUris = new[] { "http://console.fengling.local/" },
|
||||
Scopes = new[] { "api", "offline_access" },
|
||||
RedirectUris = new[] {
|
||||
"http://console.fengling.local/auth/callback",
|
||||
"http://localhost:5777/callback"
|
||||
},
|
||||
PostLogoutRedirectUris = new[] {
|
||||
"http://console.fengling.local/",
|
||||
"http://localhost:5777/"
|
||||
},
|
||||
Scopes = new[] { "openid", "profile", "email", "api", "offline_access" },
|
||||
GrantTypes = new[] { "authorization_code", "refresh_token" },
|
||||
ClientType = "confidential",
|
||||
ConsentType = "implicit",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user