Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Identity.ResourceAuthorizeAttribute Class

Used with controller methods which must be authorized for access. The ResourceAuthorize attribute must use a protected named resource (defined using ResourceAttribute). When the method is invoked, validation occurs to insure the user is authorized to access the protected name resource.

This can be used for any type of controller, including plain MVC controllers, without ModuleGuid (i.e., no associated module).

Namespace: YetaWF.Core.Identity
Assembly: YetaWF.Core

Inheritance

Syntax

public class ResourceAuthorizeAttribute : Microsoft.AspNetCore.Authorization.AuthorizeAttribute;

Constructors

PublicResourceAuthorizeAttributeConstructor.

Properties

PublicInherited from Microsoft.AspNetCore.Authorization.AuthorizeAttributeAuthenticationSchemesGets or sets a comma delimited list of schemes from which user information is constructed.
PublicNameDefines the name of the protected named resource (defined using ResourceAttribute).
PublicInherited from Microsoft.AspNetCore.Authorization.AuthorizeAttributePolicyGets or sets the policy name that determines access to the resource.
PublicInherited from Microsoft.AspNetCore.Authorization.AuthorizeAttributeRolesGets or sets a comma delimited list of roles that are allowed to access the resource.
PublicInherited from System.AttributeTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.

Methods

PublicInherited from System.AttributeEqualsReturns a value that indicates whether this instance is equal to a specified object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicStaticInherited from System.AttributeGetCustomAttributeRetrieves a custom attribute applied to a specified assembly. Parameters specify the assembly and the type of the custom attribute to search for.
PublicStaticInherited from System.AttributeGetCustomAttributesRetrieves an array of the custom attributes applied to an assembly. A parameter specifies the assembly.
PublicInherited from System.AttributeGetHashCodeReturns the hash code for this instance.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicInherited from System.AttributeIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
PublicStaticInherited from System.AttributeIsDefinedDetermines whether any custom attributes are applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for.
PublicInherited from System.AttributeMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Core Overview