|
|
|
@ -1,9 +1,11 @@ |
|
|
|
using System; |
|
|
|
using Microsoft.AspNetCore.Authentication.OAuth.Claims; |
|
|
|
using Microsoft.AspNetCore.Builder; |
|
|
|
using Microsoft.AspNetCore.DataProtection; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.IdentityModel.Protocols.OpenIdConnect; |
|
|
|
using ProductManagement; |
|
|
|
using StackExchange.Redis; |
|
|
|
using Swashbuckle.AspNetCore.Swagger; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.AspNetCore.Authentication.OAuth; |
|
|
|
@ -83,6 +85,10 @@ namespace BackendAdminApp.Host |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
}); |
|
|
|
|
|
|
|
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]); |
|
|
|
context.Services.AddDataProtection() |
|
|
|
.PersistKeysToStackExchangeRedis(redis, "MsDemo-DataProtection-Keys"); |
|
|
|
} |
|
|
|
|
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
|