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
parent
commit
650275612f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/AbpAspNetCoreModule.cs

2
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());

Loading…
Cancel
Save