5 implementations of AuthorizeAsync
Microsoft.AspNetCore.Authorization (1)
DefaultAuthorizationService.cs (1)
62
public virtual async Task<AuthorizationResult>
AuthorizeAsync
(ClaimsPrincipal user, object? resource, IEnumerable<IAuthorizationRequirement> requirements)
Microsoft.AspNetCore.Authorization.Test (2)
PolicyEvaluatorTests.cs (2)
171
public Task<AuthorizationResult>
AuthorizeAsync
(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)
180
public Task<AuthorizationResult>
AuthorizeAsync
(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)
Microsoft.AspNetCore.Components.Authorization.Tests (2)
TestAsyncAuthorizationService.cs (1)
17
public async Task<AuthorizationResult>
AuthorizeAsync
(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)
TestAuthorizationService.cs (1)
17
public Task<AuthorizationResult>
AuthorizeAsync
(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)
4 references to AuthorizeAsync
Microsoft.AspNetCore.Authorization (4)
AuthorizationFailure.cs (1)
11
/// Encapsulates a failure result of <see cref="IAuthorizationService.
AuthorizeAsync
(ClaimsPrincipal, object, IEnumerable{IAuthorizationRequirement})"/>.
AuthorizationResult.cs (1)
11
/// Encapsulates the result of <see cref="IAuthorizationService.
AuthorizeAsync
(ClaimsPrincipal, object, IEnumerable{IAuthorizationRequirement})"/>.
AuthorizationServiceExtensions.cs (2)
32
return service.
AuthorizeAsync
(user, resource, new IAuthorizationRequirement[] { requirement });
51
return service.
AuthorizeAsync
(user, resource, policy.Requirements);