'DeclarationPublic Event GetIdentityContextSecurityRoleIds As UAGetIdentityContextSecurityRoleIdsEventHandler
'UsageDim 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.
| Property | Description |
|---|---|
| Handled | (Inherited from System.ComponentModel.HandledEventArgs) |
| IdentityContext | Gets the identity context for which security role IDs are being retrieved. (Inherited from OpcLabs.BaseLib.Security.OperationModel.GetIdentityContextSecurityRoleIdsEventArgs) |
| Result | 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