Class: DsePlainTextAuthProvider

auth~ DsePlainTextAuthProvider

AuthProvider that provides plain text authenticator instances for clients to connect to DSE clusters secured with the DseAuthenticator.

Constructor

new DsePlainTextAuthProvider(username, password)

Creates a new instance of DsePlainTextAuthProvider.
Extends:
  • AuthProvider
Parameters:
Name Type Description
username String
password String
Example
const client = new dse.Client({
 contactPoints: ['h1', 'h2'],
 authProvider: new dse.auth.DsePlainTextAuthProvider('user', 'p@ssword1');
});

Extends

  • AuthProvider

Methods

newAuthenticator(endpoint, name) → {Authenticator}

Returns an Authenticator instance to be used by the driver when connecting to a host.
Parameters:
Name Type Description
endpoint String The IP address and port number in the format ip:port.
name String Authenticator name.
Returns:
Type
Authenticator