Browse Source
Merge pull request #20 from colinin/3.0
Fixed identity server client permission bugs in the framework
pull/21/head
cKey
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/PlatformHttpApiHostModule.cs
@ -27,6 +27,7 @@ using Volo.Abp;
using Volo.Abp.Account ;
using Volo.Abp.AspNetCore.Authentication.JwtBearer ;
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy ;
using Volo.Abp.Authorization.Permissions ;
using Volo.Abp.Autofac ;
using Volo.Abp.Caching ;
using Volo.Abp.EntityFrameworkCore ;
@ -126,6 +127,13 @@ namespace LINGYUN.Platform
options . DefaultSalt = Encoding . ASCII . GetBytes ( "sf&5)s3#" ) ;
} ) ;
Configure < PermissionManagementOptions > ( options = >
{
// Rename IdentityServer.Client.ManagePermissions
// See https://github.com/abpframework/abp/blob/dev/modules/identityserver/src/Volo.Abp.PermissionManagement.Domain.IdentityServer/Volo/Abp/PermissionManagement/IdentityServer/AbpPermissionManagementDomainIdentityServerModule.cs
options . ProviderPolicies [ ClientPermissionValueProvider . ProviderName ] = AbpIdentityServerPermissions . Clients . ManagePermissions ;
} ) ;
// 自定义需要处理的异常
Configure < AbpExceptionHandlingOptions > ( options = >
{