Skip to content

Commit

Permalink
Use the tempkey.rsa file in memory.
Browse files Browse the repository at this point in the history
Resolve #3515
  • Loading branch information
maliming committed Apr 8, 2020
1 parent 800b1ab commit 5ae4dcc
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Volo.Abp.Autofac;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.Data;
using Volo.Abp.IdentityServer;
using Volo.Abp.Modularity;
using Volo.Abp.Threading;

Expand All @@ -17,6 +18,19 @@ namespace MyCompanyName.MyProjectName
)]
public class MyProjectNameTestBaseModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<AbpIdentityServerBuilderOptions>(options =>
{
options.AddDeveloperSigningCredential = false;
});

PreConfigure<IIdentityServerBuilder>(identityServerBuilder =>
{
identityServerBuilder.AddDeveloperSigningCredential(false, System.Guid.NewGuid().ToString());
});
}

public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpBackgroundJobOptions>(options =>
Expand Down

0 comments on commit 5ae4dcc

Please sign in to comment.