Click or drag to resize

AuthorizeControllerRoleAttribute Class

Defines an MVC filter attribute to handle the GSF role based security model.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    FilterAttribute
      GSF.Web.SecurityAuthorizeControllerRoleAttribute

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public class AuthorizeControllerRoleAttribute : FilterAttribute, 
	IAuthorizationFilter, IExceptionFilter
View Source

The AuthorizeControllerRoleAttribute type exposes the following members.

Constructors
 NameDescription
Public methodAuthorizeControllerRoleAttribute Creates a new MVC based authorization attribute.
Public methodAuthorizeControllerRoleAttribute(String) Creates a new MVC based authorization attribute for specified roles.
Top
Properties
 NameDescription
Public propertyAllowMultipleGets or sets a value that indicates whether more than one instance of the filter attribute can be specified.
(Inherited from FilterAttribute)
Public propertyOrderGets or sets the order in which the action filters are executed.
(Inherited from FilterAttribute)
Public propertySecurityExceptionViewName Gets or sets view name to show for security exceptions.
Public propertySecuritySettingsCategory Gets or sets settings category used to lookup security connection for user data context.
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Top
Methods
 NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnAuthorization Called when authorization is required.
Public methodOnException Called when an exception occurs.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldAllowedRoles Gets allowed roles as a string array.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also