Search Results for

    Show / Hide Table of Contents
    View Source

    Class FeatureAuthorizeHandler

    Authorizes that the controller is an authorized Umbraco feature.

    Inheritance
    System.Object
    MustSatisfyRequirementAuthorizationHandler<FeatureAuthorizeRequirement>
    Namespace: Umbraco.Cms.Api.Management.Security.Authorization.Feature
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public class FeatureAuthorizeHandler : MustSatisfyRequirementAuthorizationHandler<FeatureAuthorizeRequirement>

    Constructors

    View Source

    FeatureAuthorizeHandler(IFeatureAuthorizer, IRuntimeState)

    Initializes a new instance of the FeatureAuthorizeHandler class.

    Declaration
    public FeatureAuthorizeHandler(IFeatureAuthorizer featureAuthorizer, IRuntimeState runtimeState)
    Parameters
    Type Name Description
    IFeatureAuthorizer featureAuthorizer

    Authorizer for Umbraco features.

    IRuntimeState runtimeState

    The runtime state.

    Methods

    View Source

    IsAuthorized(AuthorizationHandlerContext, FeatureAuthorizeRequirement)

    Returns true if the requirement is succeeded or ignored, returns false if the requirement is explicitly not met.

    Declaration
    protected override async Task<bool> IsAuthorized(AuthorizationHandlerContext context, FeatureAuthorizeRequirement requirement)
    Parameters
    Type Name Description
    AuthorizationHandlerContext context

    The authorization context.

    FeatureAuthorizeRequirement requirement
    Returns
    Type Description
    Task<System.Boolean>

    True if request is authorized, false if not.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • FeatureAuthorizeHandler(IFeatureAuthorizer, IRuntimeState)
    • Methods
      • IsAuthorized(AuthorizationHandlerContext, FeatureAuthorizeRequirement)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX