Browse Source
Merge pull request #14720 from abpframework/auto-merge/rel-7-0/1467
Merge branch dev with rel-7.0
pull/14724/head
liangshiwei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
0 deletions
-
framework/src/Volo.Abp.Security/Volo/Abp/Security/AbpSecurityModule.cs
|
|
|
@ -5,6 +5,7 @@ using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.Security.Claims; |
|
|
|
using Volo.Abp.Security.Encryption; |
|
|
|
using Volo.Abp.SecurityLog; |
|
|
|
|
|
|
|
namespace Volo.Abp.Security; |
|
|
|
|
|
|
|
@ -17,6 +18,15 @@ public class AbpSecurityModule : AbpModule |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
var applicationName = context.Services.GetApplicationName(); |
|
|
|
if (!applicationName.IsNullOrEmpty()) |
|
|
|
{ |
|
|
|
Configure<AbpSecurityLogOptions>(options => |
|
|
|
{ |
|
|
|
options.ApplicationName = applicationName; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
var configuration = context.Services.GetConfiguration(); |
|
|
|
context.Services.Configure<AbpStringEncryptionOptions>(options => |
|
|
|
{ |
|
|
|
|