Пример #1
0
 /// <summary>
 /// TODO: a default anthentication handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void AnonymousAuthenticator(object sender, UserAuthenticatorArgs e)
 {
     if (e.User == "anonymous")
     {
         Logging.Print("hi anonymous");
         e.Result = UserAuthenticationResult.Approved;
     }
 }
Пример #2
0
 /// <summary>
 /// TODO: a default anthentication handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void AnonymousAuthenticator(object sender, UserAuthenticatorArgs e)
 {
     if (e.User == "anonymous")
     {
         Logging.Print("hi anonymous");
         e.Result = UserAuthenticationResult.Approved;
     }
 }
Пример #3
0
 /// <summary>
 /// Static method to raise an authentication event from sessions
 /// </summary>
 /// <param name="o"></param>
 /// <param name="e"></param>
 internal static void RaiseEvent(object o, UserAuthenticatorArgs e)
 {
     AuthenticationEvent(o, e);
 }
Пример #4
0
 /// <summary>
 /// Static method to raise an authentication event from sessions
 /// </summary>
 /// <param name="o"></param>
 /// <param name="e"></param>
 internal static void RaiseEvent(object o, UserAuthenticatorArgs e)
 {
     AuthenticationEvent(o, e);
 }