2 implementations of AuthorizeAsync
Aspire.Dashboard (1)
Authentication\AspirePolicyEvaluator.cs (1)
105public virtual async Task<PolicyAuthorizationResult> AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, object? resource)
Microsoft.AspNetCore.Authorization.Policy (1)
PolicyEvaluator.cs (1)
94public virtual async Task<PolicyAuthorizationResult> AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, object? resource)
9 references to AuthorizeAsync
Microsoft.AspNetCore.Authorization.Policy (2)
AuthorizationMiddleware.cs (1)
193var authorizeResult = await policyEvaluator.AuthorizeAsync(policy, authenticateResult!, context, resource);
PolicyAuthorizationResult.cs (1)
7/// The result of <see cref="IPolicyEvaluator.AuthorizeAsync(AuthorizationPolicy, Authentication.AuthenticateResult, Http.HttpContext, object?)"/>.
Microsoft.AspNetCore.Authorization.Test (6)
PolicyEvaluatorTests.cs (6)
77var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Fail("Nooo"), context, resource: null); 95var result = await evaluator.AuthorizeAsync(policy, success, context, resource: null); 96var result2 = await evaluator.AuthorizeAsync(policy, success, context, resource: new object()); 112var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Fail("Nooo"), context, resource: null); 129var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(), "scheme")), context, resource: null); 149var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(), "scheme")), context, resource: null);
Microsoft.AspNetCore.Mvc.Core (1)
Authorization\AuthorizeFilter.cs (1)
185var authorizeResult = await policyEvaluator.AuthorizeAsync(effectivePolicy, authenticateResult, context.HttpContext, context);