Click or drag to resize

SecurityHub Class

Defines a SignalR security hub for managing users, groups and SID management.
Inheritance Hierarchy
SystemObject
  HubBase
    Hub
      GSF.Web.HubsRecordOperationsHubSecurityHub
        GSF.Web.SecuritySecurityHub

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
[AuthorizeHubRoleAttribute]
public class SecurityHub : RecordOperationsHub<SecurityHub>
View Source

The SecurityHub type exposes the following members.

Constructors
 NameDescription
Public methodSecurityHub Creates a new SecurityHub.
Public methodSecurityHub(ActionString, UpdateType, ActionException) Creates a new SecurityHub with the specified logging functions.
Public methodSecurityHub(String, ActionString, UpdateType, ActionException) Creates a new SecurityHub with the specified DataContext and logging functions.
Top
Properties
 NameDescription
Public propertyAzureADSettings Gets Azure AD settings.
Public propertyClients
(Inherited from Hub)
Public propertyClientScript Gets reference to SignalR hub client browser DOM functionality.
(Inherited from RecordOperationsHubT)
Public propertyConnectionID Gets active connection ID from current hub context or assigns one to use.
(Inherited from RecordOperationsHubT)
Public propertyContext Provides information about the calling client.
(Inherited from HubBase)
Public propertyDataContext Gets DataContext created for this RecordOperationsHubT instance.
(Inherited from RecordOperationsHubT)
Public propertyGraphClient Gets Graph client.
Public propertyGroups The group manager for this hub instance.
(Inherited from HubBase)
Public propertyRecordOperationsCache Gets RecordOperationsCache for SignalR hub.
(Inherited from RecordOperationsHubT)
Top
Methods
 NameDescription
Public methodAddGroupToRole Adds group to a role.
Public methodAddNewSecurityGroup Adds a new security group.
Public methodAddNewUserAccount Adds a new user account.
Public methodAddUserToRole Adds user to a role.
Public methodDeleteSecurityGroup Deletes security group.
Public methodDeleteUserAccount Deletes user account.
Public methodDispose
(Inherited from HubBase)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the RecordOperationsHubT object and optionally releases the managed resources.
(Inherited from RecordOperationsHubT)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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 methodGetAzureADGroupList Gets the list of Azure AD groups that are defined.
Public methodGetAzureADUserList Gets the list of Azure AD users that are defined.
Public methodGetConnectionID Gets connection ID for active hub context, if any.
(Inherited from RecordOperationsHubT)
Public methodGetDefaultNodeID Gets the default NodeID based on the current configuration.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGroupIsInRole Determines if group is in role based on database ID values.
Public methodGroupNameToSID Gets SID for a given group name.
Public methodIsGroupSID Determines if SID is for a group.
Public methodIsUserSID Determines if SID is for a user.
Public methodIsValidAzureADGroupName Gets flag that determines if specified group name can be found on Azure AD.
Public methodIsValidAzureADUserName Gets flag that determines if specified user name can be found on Azure AD.
Protected methodLogException Logs an exception to hub client and any provided log exception delegate.
(Inherited from RecordOperationsHubT)
Public methodLogout Resets the current provider cache.
Protected methodLogStatusMessage Logs a status message to hub client and any provided log status message delegate.
(Inherited from RecordOperationsHubT)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNewSecurityGroup Creates a new security group model instance.
Public methodNewUserAccount Creates a new user account model instance.
Public methodOnConnected Called when the connection connects to this hub instance.
(Inherited from RecordOperationsHubT)
Public methodOnDisconnected Called when a connection disconnects from this hub gracefully or due to a timeout.
(Inherited from RecordOperationsHubT)
Public methodOnReconnected Called when the connection reconnects to this hub instance.
(Inherited from HubBase)
Public methodQueryApplicationRoles Gets the current application role records.
Public methodQuerySecurityGroup Finds the specified security group record.
Public methodQuerySecurityGroupByName Finds the specified security group record by SID or database account name.
Public methodQuerySecurityGroupCount Queries count of security groups.
Public methodQuerySecurityGroups Queries page of security groups.
Public methodQueryUserAccount Finds the specified user account record.
Public methodQueryUserAccountByName Finds the specified user account record by SID or database account name.
Public methodQueryUserAccountCount Queries count of user accounts.
Public methodQueryUserAccounts Queries page of user accounts.
Public methodRemoveGroupFromRole Removes group from a role.
Public methodRemoveUserFromRole Removes user from a role.
Public methodSearchSecurityGroups Searches security groups by resolved names.
Public methodSearchUserAccounts(String) Searches user accounts by resolved names with no limit on total returned records.
Public methodSearchUserAccounts(String, Int32) Searches user accounts by resolved names limited to the specified number of records.
Public methodSIDToAccountName Gets account name for a given SID.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdateSecurityGroup Updates security group.
Public methodUpdateUserAccount Updates user account.
Public methodUserIsInRole Determines if user is in role based on database ID values.
Public methodUserNameToSID Gets SID for a given user name.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultNodeID Gets current default Node ID for security.
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