Dela via


DefaultAuthorizationService Class

Definition

The default implementation of an IAuthorizationService.

public ref class DefaultAuthorizationService : Microsoft::AspNetCore::Authorization::IAuthorizationService
public class DefaultAuthorizationService : Microsoft.AspNetCore.Authorization.IAuthorizationService
type DefaultAuthorizationService = class
    interface IAuthorizationService
Public Class DefaultAuthorizationService
Implements IAuthorizationService
Inheritance
DefaultAuthorizationService
Implements

Constructors

DefaultAuthorizationService(IAuthorizationPolicyProvider, IAuthorizationHandlerProvider, ILogger<DefaultAuthorizationService>, IAuthorizationHandlerContextFactory, IAuthorizationEvaluator, IOptions<AuthorizationOptions>)

Creates a new instance of DefaultAuthorizationService.

DefaultAuthorizationService(IAuthorizationPolicyProvider, IEnumerable<IAuthorizationHandler>, ILogger<DefaultAuthorizationService>, IAuthorizationHandlerContextFactory, IAuthorizationEvaluator, IOptions<AuthorizationOptions>)

Creates a new instance of DefaultAuthorizationService.

DefaultAuthorizationService(IAuthorizationPolicyProvider, IEnumerable<IAuthorizationHandler>, ILogger<DefaultAuthorizationService>)

Creates a new instance of 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)

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