Connectivity Software User's Guide and Reference
GetIdentityContextSecurityRoleIds Event



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > EasyUAServerCore Class : GetIdentityContextSecurityRoleIds Event
Raised to determine the security role IDs for a given user identity context.
Syntax
'Declaration
 
Public Event GetIdentityContextSecurityRoleIds As UAGetIdentityContextSecurityRoleIdsEventHandler
'Usage
 
Dim instance As EasyUAServerCore
Dim handler As UAGetIdentityContextSecurityRoleIdsEventHandler
 
AddHandler instance.GetIdentityContextSecurityRoleIds, handler
public event UAGetIdentityContextSecurityRoleIdsEventHandler GetIdentityContextSecurityRoleIds
public:
event UAGetIdentityContextSecurityRoleIdsEventHandler^ GetIdentityContextSecurityRoleIds
Event Data

The event handler receives an argument of type UAGetIdentityContextSecurityRoleIdsEventArgs containing data related to this event. The following UAGetIdentityContextSecurityRoleIdsEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.ComponentModel.HandledEventArgs)
Gets the identity context for which security role IDs are being retrieved. (Inherited from OpcLabs.BaseLib.Security.OperationModel.GetIdentityContextSecurityRoleIdsEventArgs)
Gets or sets the list of security role IDs associated with the identity context. (Inherited from OpcLabs.BaseLib.Security.OperationModel.GetIdentityContextSecurityRoleIdsEventArgs)
Remarks

This event allows custom logic to be implemented for determining which security roles should be assigned to a user based on their identity context. If the event is not handled, the server will use the configured UserManagers to determine the security roles.

Handle this event if you need to implement custom security role assignment logic beyond what is provided by the standard user managers.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also