Introduce 'credentials' client option

Description

Currently, plain text authenticator can only be set using the authProvider:

1 2 3 4 5 const client = new Client({ contactPoints, localDataCenter, authProvider: new cassandra.auth.PlainTextAuthProvider('user1', 'pass1') });

It would be more user friendly to support setting the credentials:

1 2 3 4 5 const client = new Client({ contactPoints, localDataCenter, credentials: { username: 'user1', password: 'pass1' } });

In case both are defined, authProvider should take precedence.

Environment

None

Pull Requests

None

Status

Assignee

Jorge Bay Gondra

Reporter

Jorge Bay Gondra

Reviewer

None

Fix versions

Labels

None

Components

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Size

None

Priority

Major