Click or drag to resize

AuthorizeHubRoleAttribute Class

Defines a SignalR authorization attribute to handle the GSF role based security model.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    AuthorizeAttribute
      GSF.Web.SecurityAuthorizeHubRoleAttribute

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public class AuthorizeHubRoleAttribute : AuthorizeAttribute
View Source

The AuthorizeHubRoleAttribute type exposes the following members.

Constructors
 NameDescription
Public methodAuthorizeHubRoleAttribute Creates a new AuthorizeHubRoleAttribute.
Public methodAuthorizeHubRoleAttribute(String) Creates a new AuthorizeHubRoleAttribute with specified allowed roles.
Top
Properties
 NameDescription
Public propertyAllowedRoles Gets the allowed Roles as a string array.
Public propertyRequireOutgoing Set to false to apply authorization only to the invocations of any of the Hub's server-side methods. This property only affects attributes applied to the Hub class. This property cannot be read.
(Inherited from AuthorizeAttribute)
Public propertyRoles Gets or sets the user roles.
(Inherited from AuthorizeAttribute)
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)
Public propertyUsers Gets or sets the authorized users.
(Inherited from AuthorizeAttribute)
Top
Methods
 NameDescription
Public methodAuthorizeHubConnection Determines whether client is authorized to connect to IHub.
(Inherited from AuthorizeAttribute)
Public methodAuthorizeHubMethodInvocation Determines whether client is authorized to invoke the IHub method.
(Inherited from AuthorizeAttribute)
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 methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodUserAuthorized Provides an entry point for custom authorization checks.
(Overrides AuthorizeAttribute.UserAuthorized(IPrincipal))
Top
Fields
 NameDescription
Protected field_requireOutgoing
(Inherited from AuthorizeAttribute)
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