Browse Source
Merge pull request #14518 from abpframework/AddAuthenticationCore
Call `AddAuthorization` method on `AbpAspNetCoreModule`.
pull/14522/head
Halil İbrahim Kalkan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/AbpAspNetCoreModule.cs
|
|
@ -33,6 +33,8 @@ public class AbpAspNetCoreModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
|
|
|
context.Services.AddAuthorization(); |
|
|
|
|
|
|
|
|
Configure<AbpAuditingOptions>(options => |
|
|
Configure<AbpAuditingOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.Contributors.Add(new AspNetCoreAuditLogContributor()); |
|
|
options.Contributors.Add(new AspNetCoreAuditLogContributor()); |
|
|
|