Пример #1
0
 private void SetupCurrentUser(Auth0User auth0User)
 {
     if (auth0User.Profile != null)
     {
         this.CurrentUser = auth0User;
     }
     else
     {
         this.SetupCurrentUser(new Dictionary <string, string>
         {
             { "access_token", auth0User.Auth0AccessToken },
             { "id_token", auth0User.IdToken },
             { "state", auth0User.State }
         });
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Xamarin.Auth.AuthenticatorCompletedEventArgs"/> class.
 /// </summary>
 /// <param name='account'>
 /// The account created or <see langword="null"/> if authentication failed or was canceled.
 /// </param>
 public AuthenticatorCompletedEventArgs(Auth0User account)
 {
     Account = account;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Xamarin.Auth.AuthenticatorCompletedEventArgs"/> class.
 /// </summary>
 /// <param name='account'>
 /// The account created or <see langword="null"/> if authentication failed or was canceled.
 /// </param>
 public AuthenticatorCompletedEventArgs(Auth0User account)
 {
     Account = account;
 }
 private void SetupCurrentUser(Auth0User auth0User)
 {
     if (auth0User.Profile != null)
     {
         this.CurrentUser = auth0User;
     }
     else
     {
         this.SetupCurrentUser(new Dictionary<string, string> 
         {
             { "access_token", auth0User.Auth0AccessToken },
             { "id_token", auth0User.IdToken },
             { "state", auth0User.State }
         });
     }
 }