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)
Cassandra:b64(username):password(username)
const provider = new UsernamePasswordTokenProvider('username', 'password');const client = new DataAPIClient(provider, { environment: 'dse' }); Copy
const provider = new UsernamePasswordTokenProvider('username', 'password');const client = new DataAPIClient(provider, { environment: 'dse' });
TokenProvider
Constructs an instead of the TokenProvider.
The username for the DSE instance
The password for the DSE instance
Private
Readonly
Static
Internal
Protected
Returns the string the token provider was instantiated with.
the string the token provider was instantiated with.
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
See
TokenProvider