3 instantiations of AuthorizationResult
Microsoft.AspNetCore.Authorization (3)
95 references to AuthorizationResult
Aspire.Dashboard (1)
Microsoft.AspNetCore.Authorization (23)
AuthorizationServiceExtensions.cs (4)
27public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, object? resource, IAuthorizationRequirement requirement)
46public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, object? resource, AuthorizationPolicy policy)
64public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, AuthorizationPolicy policy)
82public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, string policyName)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.Authorization.Test (49)
DefaultAuthorizationServiceTests.cs (40)
44var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
65var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
87var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
107var allowed = await authorizationService.AuthorizeAsync(new ClaimsPrincipal(), "Custom");
134var allowed = await authorizationService.AuthorizeAsync(new ClaimsPrincipal(), "Custom");
185var allowed = await authorizationService.AuthorizeAsync(new ClaimsPrincipal(), "Custom");
214var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
236var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
257var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
276var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
290var allowed = await authorizationService.AuthorizeAsync(null, null, "Basic");
305var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
326var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
361var allowed = await authorizationService.AuthorizeAsync(user, policy.Build());
382var allowed = await authorizationService.AuthorizeAsync(user, policy.Build());
399var allowed = await authorizationService.AuthorizeAsync(user, policy.Build());
416var allowed = await authorizationService.AuthorizeAsync(user, null, policy.Build());
432var allowed = await authorizationService.AuthorizeAsync(user, policy.Build());
453var allowed = await authorizationService.AuthorizeAsync(user, policy.Build());
473var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
501var allowed = await authorizationService.AuthorizeAsync(user, "Hao");
527var allowed = await authorizationService.AuthorizeAsync(user, "Hao");
549var allowed = await authorizationService.AuthorizeAsync(user, "Hao");
571var allowed = await authorizationService.AuthorizeAsync(user, "Hao");
596var allowed = await authorizationService.AuthorizeAsync(user, null, "Any");
616var allowed = await authorizationService.AuthorizeAsync(user, null, "Any");
649var allowed = await authorizationService.AuthorizeAsync(user, null, "Custom");
670var allowed = await authorizationService.AuthorizeAsync(user, null, "Custom");
711var allowed = await authorizationService.AuthorizeAsync(user, null, "Passthrough");
739var allowed = await authorizationService.AuthorizeAsync(user, null, "Combined");
766var allowed = await authorizationService.AuthorizeAsync(user, null, "Combined");
793var allowed = await authorizationService.AuthorizeAsync(user, null, "Combined");
970var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
989var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
1028var allowed = await authorizationService.AuthorizeAsync(user, "Basic");
1076public AuthorizationResult Evaluate(AuthorizationHandlerContext context) => AuthorizationResult.Success();
1087var result = await authorizationService.AuthorizeAsync(null, "Fail");
1211var result = await authorizationService.AuthorizeAsync(user, "Log");
1245var result = await authorizationService.AuthorizeAsync(user, "Log");
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Authorization.Tests (19)
Microsoft.AspNetCore.SignalR.Core (1)