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)

检查用户是否满足针对指定资源的特定授权策略。

适用于