|
|
@ -1,4 +1,5 @@ |
|
|
using IdentityServer4.Services; |
|
|
using System.Security.Cryptography.X509Certificates; |
|
|
|
|
|
using IdentityServer4.Services; |
|
|
using IdentityServer4.Stores; |
|
|
using IdentityServer4.Stores; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Volo.Abp.AutoMapper; |
|
|
using Volo.Abp.AutoMapper; |
|
|
@ -24,6 +25,7 @@ namespace Volo.Abp.IdentityServer |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
context.Services.AddAutoMapperObjectMapper<AbpIdentityServerDomainModule>(); |
|
|
context.Services.AddAutoMapperObjectMapper<AbpIdentityServerDomainModule>(); |
|
|
|
|
|
|
|
|
Configure<AbpAutoMapperOptions>(options => |
|
|
Configure<AbpAutoMapperOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.AddProfile<ClientAutoMapperProfile>(validate: true); |
|
|
options.AddProfile<ClientAutoMapperProfile>(validate: true); |
|
|
@ -45,9 +47,12 @@ namespace Volo.Abp.IdentityServer |
|
|
options.Events.RaiseSuccessEvents = true; |
|
|
options.Events.RaiseSuccessEvents = true; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
identityServerBuilder |
|
|
if (builderOptions.AddDeveloperSigningCredential) |
|
|
.AddDeveloperSigningCredential() //TODO: Should be able to change this!
|
|
|
{ |
|
|
.AddAbpIdentityServer(builderOptions); |
|
|
identityServerBuilder = identityServerBuilder.AddDeveloperSigningCredential(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
identityServerBuilder.AddAbpIdentityServer(builderOptions); |
|
|
|
|
|
|
|
|
services.ExecutePreConfiguredActions(identityServerBuilder); |
|
|
services.ExecutePreConfiguredActions(identityServerBuilder); |
|
|
|
|
|
|
|
|
|