Browse Source
Merge pull request #537 from colinin/vue-old-client
the old client needs to transition
pull/580/head
yx lin
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
16 additions and
4 deletions
-
aspnet-core/services/LY.MicroService.identityServer/DataSeeder/IdentityServerDataSeedContributor.cs
-
aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json
|
|
|
@ -190,12 +190,21 @@ public class IdentityServerDataSeedContributor : IDataSeedContributor, ITransien |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
//Console Test Client
|
|
|
|
var consoleClientId = configurationSection["AuthVueAdmin:ClientId"]; |
|
|
|
if (!consoleClientId.IsNullOrWhiteSpace()) |
|
|
|
var vueClientId = configurationSection["AuthVueAdmin:ClientId"]; |
|
|
|
if (!vueClientId.IsNullOrWhiteSpace()) |
|
|
|
{ |
|
|
|
await CreateClientAsync( |
|
|
|
consoleClientId, |
|
|
|
vueClientId, |
|
|
|
commonScopes.Union(new[] { "lingyun-abp-application" }), |
|
|
|
new[] { "password", "client_credentials" }, |
|
|
|
commonSecret |
|
|
|
); |
|
|
|
} |
|
|
|
var vueOldClientId = configurationSection["AuthOldVueAdmin:ClientId"]; |
|
|
|
if (!vueOldClientId.IsNullOrWhiteSpace()) |
|
|
|
{ |
|
|
|
await CreateClientAsync( |
|
|
|
vueOldClientId, |
|
|
|
commonScopes.Union(new[] { "lingyun-abp-application" }), |
|
|
|
new[] { "password", "client_credentials" }, |
|
|
|
commonSecret |
|
|
|
|
|
|
|
@ -60,6 +60,9 @@ |
|
|
|
"AuthVueAdmin": { |
|
|
|
"ClientId": "vue-admin-client" |
|
|
|
}, |
|
|
|
"AuthOldVueAdmin": { |
|
|
|
"ClientId": "vue-admin-element" |
|
|
|
}, |
|
|
|
"InternalService": { |
|
|
|
"ClientId": "InternalServiceClient" |
|
|
|
} |
|
|
|
|