View Source
Class AuthorizationServiceExtensions
Inheritance
System.Object
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public static class AuthorizationServiceExtensions
Methods
View Source
AuthorizeResourceAsync(IAuthorizationService, ClaimsPrincipal, IPermissionResource, String)
Declaration
public static Task<AuthorizationResult> AuthorizeResourceAsync(this IAuthorizationService authorizationService, ClaimsPrincipal user, IPermissionResource resource, string policyName)
Parameters
Type |
Name |
Description |
IAuthorizationService |
authorizationService |
|
System.Security.Claims.ClaimsPrincipal |
user |
|
IPermissionResource |
resource |
|
System.String |
policyName |
|
Returns
Type |
Description |
Task<AuthorizationResult> |
|