Ejemplo n.º 1
0
        private void Authenticate()
        {
            Auth0
            .LoginAsync(this)
            .ContinueWith(t =>
            {
                if (this.ProgressDialog.IsShowing)
                {
                    this.ProgressDialog.Hide();
                }

                User = t.Result;
                if (User != null)
                {
                    JObject p = User.Profile;
                    Profile   = (p == null) ? null : p.ToObject <Auth0Profile>();
                    RunOnUiThread(() =>
                    {
                        TextUsername.Text = Profile.Email;
                        TextNickname.Text = Profile.Given_name;
                    });
                }
            });
        }