2 implementations of AuthorizeAsync
Aspire.Dashboard (1)
Microsoft.AspNetCore.Authorization.Policy (1)
9 references to AuthorizeAsync
Microsoft.AspNetCore.Authorization.Policy (2)
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)