AuthAttemptResult Event
Reports the outcome of an authentication attempt.
Syntax
public event OnAuthAttemptResultHandler OnAuthAttemptResult; public delegate void OnAuthAttemptResultHandler(object sender, AuthenticatorAuthAttemptResultEventArgs e); public class AuthenticatorAuthAttemptResultEventArgs : EventArgs { public string UserID { get; } public string AuthMethod { get; } public int AuthRes { get; set; } public string RemainingAuthMethods { get; set; } }
Public Event OnAuthAttemptResult As OnAuthAttemptResultHandler Public Delegate Sub OnAuthAttemptResultHandler(sender As Object, e As AuthenticatorAuthAttemptResultEventArgs) Public Class AuthenticatorAuthAttemptResultEventArgs Inherits EventArgs Public ReadOnly Property UserID As String Public ReadOnly Property AuthMethod As String Public Property AuthRes As Integer Public Property RemainingAuthMethods As String End Class
Remarks
This event follows a call to ContinueAuth method and reports the user's updated authentication status following the token verification.
The updated status is reported via the AuthRes parameter, and can take one of the following values:
arAuthFurtherAuthNeeded | 0 |
arAuthSucceeded | 1 |
arAuthFailed | 2 |
The RemainingAuthMethods parameter lists the authentication methods that the user is yet to go through. The application can change either of AuthRes and RemainingAuthMethods in the event handler to alter the authentication flow.