Browse Source
Fix parameter order and minor code cleanups
pull/24515/head
maliming
5 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
3 changed files with
2 additions and
3 deletions
-
framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Permissions/Resources/ClientResourcePermissionValueProvider.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/Clients/ClientFinder.cs
-
modules/openiddict/src/Volo.Abp.OpenIddict.Domain/Volo/Abp/OpenIddict/Applications/AbpApplicationFinder.cs
|
|
|
@ -30,7 +30,7 @@ public class ClientResourcePermissionValueProvider : ResourcePermissionValueProv |
|
|
|
|
|
|
|
using (CurrentTenant.Change(null)) |
|
|
|
{ |
|
|
|
return await ResourcePermissionStore.IsGrantedAsync(context.ResourceName, context.ResourceKey, context.Permission.Name, Name, clientId) |
|
|
|
return await ResourcePermissionStore.IsGrantedAsync(context.Permission.Name, context.ResourceName, context.ResourceKey, Name, clientId) |
|
|
|
? PermissionGrantResult.Granted |
|
|
|
: PermissionGrantResult.Undefined; |
|
|
|
} |
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ using Volo.Abp.Domain.Repositories; |
|
|
|
|
|
|
|
namespace Volo.Abp.IdentityServer.Clients; |
|
|
|
|
|
|
|
public class ClientFinder: IClientFinder, ITransientDependency |
|
|
|
public class ClientFinder : IClientFinder, ITransientDependency |
|
|
|
{ |
|
|
|
protected IClientRepository ClientRepository { get; } |
|
|
|
|
|
|
|
|
|
|
|
@ -4,7 +4,6 @@ using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
using Volo.Abp.Domain.Repositories; |
|
|
|
using Volo.Abp.Identity; |
|
|
|
|
|
|
|
namespace Volo.Abp.OpenIddict.Applications; |
|
|
|
|
|
|
|
|