DataWeb
Search Results for

    Show / Hide Table of Contents

    Class NavigationAuthorizeAttribute

    Authorization attribute that verifies whether the current user is allowed to access the navigation node identified by the nav query parameter (or the legacy inav parameter). When authorization fails, the response is either an HTTP status code or a redirect to the access-denied page, depending on the configured NavigationAuthorizeAttribute.ResponseMode.

    Inheritance
    object
    Attribute
    TypeFilterAttribute
    NavigationAuthorizeAttribute
    Implements
    IFilterFactory
    IOrderedFilter
    IFilterMetadata
    Inherited Members
    TypeFilterAttribute.CreateInstance(IServiceProvider)
    TypeFilterAttribute.Arguments
    TypeFilterAttribute.ImplementationType
    TypeFilterAttribute.Order
    TypeFilterAttribute.IsReusable
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Filter
    Assembly: DataWeb.Core.dll
    Syntax
    public sealed class NavigationAuthorizeAttribute : TypeFilterAttribute, IFilterFactory, IOrderedFilter, IFilterMetadata
    Remarks

    On success, the resolved Navigation and its NavigationContext are stored in Items under the keys "Navigation" and "NavigationContext" for use by the action.

    Constructors

    NavigationAuthorizeAttribute(ResponseMode, ResponseErrorCode)

    Initializes a new instance of the NavigationAuthorizeAttribute class.

    Declaration
    public NavigationAuthorizeAttribute(NavigationAuthorizeAttribute.ResponseMode responseMode = ResponseMode.StatusCode, NavigationAuthorizeAttribute.ResponseErrorCode responseErrorCode = ResponseErrorCode.Forbidden)
    Parameters
    Type Name Description
    NavigationAuthorizeAttribute.ResponseMode responseMode

    Determines whether a failed authorization returns an HTTP status code or redirects to the access-denied page. Defaults to StatusCode.

    NavigationAuthorizeAttribute.ResponseErrorCode responseErrorCode

    The HTTP error code to return when StatusCode is active. Defaults to Forbidden (403).

    Implements

    IFilterFactory
    IOrderedFilter
    IFilterMetadata
    In this article
    Back to top Generated by DocFX