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
parent
commit
f10b76522c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      aspnet-core/services/LY.MicroService.identityServer/DataSeeder/IdentityServerDataSeedContributor.cs
  2. 3
      aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json

17
aspnet-core/services/LY.MicroService.identityServer/DataSeeder/IdentityServerDataSeedContributor.cs

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

3
aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json

@ -60,6 +60,9 @@
"AuthVueAdmin": {
"ClientId": "vue-admin-client"
},
"AuthOldVueAdmin": {
"ClientId": "vue-admin-element"
},
"InternalService": {
"ClientId": "InternalServiceClient"
}

Loading…
Cancel
Save