Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

CRITICAL: CassandraSession.Login() does not work! #119

Closed
ssteo opened this Issue · 2 comments

2 participants

@ssteo

The following code always throw exception during Connection.SetKeyspace() within GetClient() because it tries to select a keyspace before calling login to authenticate.

try
{
    this.GetClient (true, null, false).login (auth_request);
    this.IsAuthenticated = true;
}
catch (Exception innerException)
{
    this.IsAuthenticated = false;
    throw new CassandraException ("Login failed.", innerException);
}
@ssteo

Update that line to the following to allow authentication to pass:

this.GetClient(setKeyspace: false, setLogin: false).login(auth);

@nberardi
Owner

Thank you for the pull request.

@nberardi nberardi closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.