Exemple #1
0
        public void OpenIdLogin()
        {
            bool        isCompleted = false;
            OpenIdLogin openidLogin = new OpenIdLogin();

            openidLogin.Login((err, arg) =>
            {
                Assert.IsNull(err);
                Assert.IsFalse(string.IsNullOrEmpty(arg.Idendifier), "Authentication failed");
                Assert.IsNotNull(openidLogin.OpenIdUser);
                Assert.IsFalse(string.IsNullOrEmpty(openidLogin.OpenIdUser.Identifier));
                isCompleted = true;
            });

            EnqueueConditional(() => isCompleted);
            EnqueueTestComplete();
        }
Exemple #2
0
 public Client(OpenIdLogin request)
 {
     this.ApplicationId  = request.ApplicationId;
     this.Authentication = request;
 }