Class UsernamePasswordTokenProvider

A token provider which translates a username-password pair into the appropriate authentication token for DSE, HCD.

Uses the format Cassandra:b64(username):password(username)

Example

const provider = new UsernamePasswordTokenProvider('username', 'password');
const client = new DataAPIClient(provider, { environment: 'dse' });

See

TokenProvider

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

#token: string

Methods