|
|
|
@ -83,7 +83,7 @@ public class OpenIddictDataSeedContributor : IDataSeedContributor, ITransientDep
|
|
|
|
|
var webClientId = configurationSection["MyProjectName_Web:ClientId"];
|
|
|
|
|
if (!webClientId.IsNullOrWhiteSpace())
|
|
|
|
|
{
|
|
|
|
|
var webClientRootUrl = configurationSection["MyProjectName_Web:RootUrl"].EnsureEndsWith('/');
|
|
|
|
|
var webClientRootUrl = configurationSection["MyProjectName_Web:RootUrl"]!.EnsureEndsWith('/');
|
|
|
|
|
|
|
|
|
|
/* MyProjectName_Web client is only needed if you created a tiered
|
|
|
|
|
* solution. Otherwise, you can delete this client. */
|
|
|
|
@ -152,8 +152,7 @@ public class OpenIddictDataSeedContributor : IDataSeedContributor, ITransientDep
|
|
|
|
|
var blazorServerTieredClientId = configurationSection["MyProjectName_BlazorServerTiered:ClientId"];
|
|
|
|
|
if (!blazorServerTieredClientId.IsNullOrWhiteSpace())
|
|
|
|
|
{
|
|
|
|
|
var blazorServerTieredRootUrl =
|
|
|
|
|
configurationSection["MyProjectName_BlazorServerTiered:RootUrl"].EnsureEndsWith('/');
|
|
|
|
|
var blazorServerTieredRootUrl = configurationSection["MyProjectName_BlazorServerTiered:RootUrl"]!.EnsureEndsWith('/');
|
|
|
|
|
|
|
|
|
|
await CreateApplicationAsync(
|
|
|
|
|
name: blazorServerTieredClientId!,
|
|
|
|
@ -218,7 +217,7 @@ public class OpenIddictDataSeedContributor : IDataSeedContributor, ITransientDep
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var client = await _openIddictApplicationRepository.FindByClientIdAsync(name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var application = new AbpApplicationDescriptor {
|
|
|
|
|
ClientId = name,
|
|
|
|
|
Type = type,
|
|
|
|
@ -412,4 +411,4 @@ public class OpenIddictDataSeedContributor : IDataSeedContributor, ITransientDep
|
|
|
|
|
{
|
|
|
|
|
return existingClient.Permissions == JsonSerializer.Serialize(application.Permissions.Select(q => q.ToString().TrimEnd('/')));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|