AuthVerify Event
Requests the application to validate an authentication token.
Syntax
public event OnAuthVerifyHandler OnAuthVerify; public delegate void OnAuthVerifyHandler(object sender, AuthenticatorAuthVerifyEventArgs e); public class AuthenticatorAuthVerifyEventArgs : EventArgs { public string UserID { get; } public string AuthMethod { get; } public string AuthToken { get; } public string AuthMethodData { get; } public bool Valid { get; set; } }
Public Event OnAuthVerify As OnAuthVerifyHandler Public Delegate Sub OnAuthVerifyHandler(sender As Object, e As AuthenticatorAuthVerifyEventArgs) Public Class AuthenticatorAuthVerifyEventArgs Inherits EventArgs Public ReadOnly Property UserID As String Public ReadOnly Property AuthMethod As String Public ReadOnly Property AuthToken As String Public ReadOnly Property AuthMethodData As String Public Property Valid As Boolean End Class
Remarks
Component fires this event to ask the application to validate an authentication token that it can't validate automatically. This can happen if UserID was not found in the user database or a custom authentication method is used.
AuthMethod and AuthToken specify the authentication method being used and the authentication token provided by the user. AuthMethodData contains an application-specific data provided by the application at the beginning of the authentication step.
An event handler subscribed to this event should validate the authentication token provided by the user and set the Valid parameter accordingly.