You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authentication fails when I try to connect to Cassandra using username and password.
var apollo = new Apollo(
{
hosts: ['127.0.0.1'],
keyspace: 'goodkeyspace',
username: 'cassandra',
password: 'cassandra'
}
);
Throws an "Authentication provider not set" exception from the 'cassandra-driver' side.
I have currently added the below change in _get_system_client() of apollo-cassandra/libs/apollo.js file to make it work.
var authProvider = new cql.auth.PlainTextAuthProvider('cassandra', 'cassandra');
temp_connection['authProvider'] = authProvider;
return new cql.Client(temp_connection);
Do we need to explicitly set this in the apollo-cassandra node module,OR am i missing something in my configuration?
The text was updated successfully, but these errors were encountered:
Authentication fails when I try to connect to Cassandra using username and password.
var apollo = new Apollo(
{
hosts: ['127.0.0.1'],
keyspace: 'goodkeyspace',
username: 'cassandra',
password: 'cassandra'
}
);
Throws an "Authentication provider not set" exception from the 'cassandra-driver' side.
I have currently added the below change in _get_system_client() of apollo-cassandra/libs/apollo.js file to make it work.
var authProvider = new cql.auth.PlainTextAuthProvider('cassandra', 'cassandra');
temp_connection['authProvider'] = authProvider;
return new cql.Client(temp_connection);
Do we need to explicitly set this in the apollo-cassandra node module,OR am i missing something in my configuration?
The text was updated successfully, but these errors were encountered: