DefaultAuthorizationService Class

Definition

The default implementation of an IAuthorizationService.

C#
public class DefaultAuthorizationService : Microsoft.AspNetCore.Authorization.IAuthorizationService
Inheritance
DefaultAuthorizationService
Implements

Constructors

Methods

AuthorizeAsync(ClaimsPrincipal, Object, IEnumerable<IAuthorizationRequirement>)

Checks if a user meets a specific set of requirements for the specified resource.

AuthorizeAsync(ClaimsPrincipal, Object, String)

Checks if a user meets a specific authorization policy.

Extension Methods

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, AuthorizationPolicy)

Checks if a user meets a specific authorization policy against the specified resource.

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, AuthorizationPolicy)

Checks if a user meets a specific authorization policy against the specified resource.

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, IAuthorizationRequirement)

Checks if a user meets a specific requirement for the specified resource

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, String)

Checks if a user meets a specific authorization policy against the specified resource.

Applies to

Tuote Versiot
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0