IAuthorizationService Interface

Definition

Checks policy based permissions for a user

public interface IAuthorizationService
Derived
Microsoft.AspNetCore.Authorization.DefaultAuthorizationService

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)
AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, AuthorizationPolicy)
AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, IAuthorizationRequirement)
AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, String)