共用方式為


DefaultAuthorizationService 類別

定義

的預設實作 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
繼承
DefaultAuthorizationService
實作

建構函式

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

建立 DefaultAuthorizationService 的新執行個體。

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

建立 DefaultAuthorizationService 的新執行個體。

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

建立 DefaultAuthorizationService 的新執行個體。

方法

AuthorizeAsync(ClaimsPrincipal, Object, IEnumerable<IAuthorizationRequirement>)

檢查使用者是否符合指定資源的特定需求集。

AuthorizeAsync(ClaimsPrincipal, Object, String)

檢查使用者是否符合特定授權原則。

擴充方法

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, AuthorizationPolicy)

檢查使用者是否符合指定的資源的特定授權原則。

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, AuthorizationPolicy)

檢查使用者是否符合指定的資源的特定授權原則。

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, Object, IAuthorizationRequirement)

檢查使用者是否符合指定資源的特定需求

AuthorizeAsync(IAuthorizationService, ClaimsPrincipal, String)

檢查使用者是否符合指定的資源的特定授權原則。

適用於