class PlainTextAuthProvider
Provides plain text Authenticator instances to be used when
connecting to a host.
Augments
Constructor
Methods
Returns a new Authenticator instance to be used for plain text authentication.
Provides plain text Authenticator instances to be used when
connecting to a host.
Creates a new instance of the Authenticator provider
var authProvider = new cassandra.auth.PlainTextAuthProvider('my_user', 'p@ssword1!');
//Set the auth provider in the clientOptions when creating the Client instance
const client = new Client({ contactPoints: contactPoints, authProvider: authProvider });| Name | Type | Description |
|---|---|---|
| username | String |
User name in plain text |
| password | String |
Password in plain text |
Returns a new Authenticator instance to be used for plain text authentication.