|
|
@ -1,6 +1,7 @@ |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Volo.Abp.AutoMapper; |
|
|
using Volo.Abp.AutoMapper; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
|
|
|
using Volo.Abp.Permissions; |
|
|
using Volo.Abp.Session; |
|
|
using Volo.Abp.Session; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.Identity |
|
|
namespace Volo.Abp.Identity |
|
|
@ -15,12 +16,17 @@ namespace Volo.Abp.Identity |
|
|
{ |
|
|
{ |
|
|
public override void ConfigureServices(IServiceCollection services) |
|
|
public override void ConfigureServices(IServiceCollection services) |
|
|
{ |
|
|
{ |
|
|
services.AddAssemblyOf<AbpIdentityApplicationModule>(); |
|
|
services.Configure<PermissionManagementOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.ManagementProviders.Add<RolePermissionManagementProvider>(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
services.Configure<AbpAutoMapperOptions>(options => |
|
|
services.Configure<AbpAutoMapperOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.AddProfile<AbpIdentityApplicationModuleAutoMapperProfile>(); |
|
|
options.AddProfile<AbpIdentityApplicationModuleAutoMapperProfile>(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
services.AddAssemblyOf<AbpIdentityApplicationModule>(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |