Example #1
0
        public void login(string keyspace, string username, string password)
        {
            client.set_keyspace(keyspace);

            AuthenticationRequest       authrequst  = new AuthenticationRequest();
            Dictionary <string, string> credentials = new Dictionary <string, string>();

            credentials.Add(username, password);
            authrequst.Credentials = credentials;
            try
            {
                client.login(authrequst);
            }
            catch (AuthenticationException e)
            {
                //To-do handle thirift auth exception with our own auth exception
                throw;
            }
        }