Пример #1
0
 protected virtual void OnAuthenticationResponseArrived(AuthenticationResponseEventArgs e)
 {
     if (AuthenticationResponseArrived != null)
     {
         AuthenticationResponseArrived(this, e);
     }
 }
 public static void HandleAuthenticationResponseArrived(AuthenticationResponseEventArgs e)
 {
     Debug.WriteLine("response from passive view arrived");
     resetTaks();
     if (e.Success)
     {
         var rawToken     = e.TokenInfo ["access_token"];
         var refreshToken = e.TokenInfo ["refresh_token"];
         currentApplication.setPassiveIdentity(rawToken, refreshToken);
         dummyPassiveAuthenticationTask.Start();
     }
     else
     {
         Debug.WriteLine(e.ErrorMessage);
         authErrorMessage = e.ErrorMessage;
         dummyPassiveFailTask.Start();
     }
 }
Пример #3
0
 void HandleAuthenticationResponseArrived(object sender, AuthenticationResponseEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("PassiveAuthActivity: " + e.Success.ToString());
     KidozenExtensions.HandleAuthenticationResponseArrived(e);
     this.Finish();
 }