5 implementations of AuthorizeAsync
Microsoft.AspNetCore.Authorization (1)
DefaultAuthorizationService.cs (1)
62public virtual async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object? resource, IEnumerable<IAuthorizationRequirement> requirements)
Microsoft.AspNetCore.Authorization.Test (2)
PolicyEvaluatorTests.cs (2)
171public Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements) 180public Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)
Microsoft.AspNetCore.Components.Authorization.Tests (2)
TestAsyncAuthorizationService.cs (1)
17public async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)
TestAuthorizationService.cs (1)
17public 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)
32return service.AuthorizeAsync(user, resource, new IAuthorizationRequirement[] { requirement }); 51return service.AuthorizeAsync(user, resource, policy.Requirements);