We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e93c1 commit 2e04a17Copy full SHA for 2e04a17
1 file changed
docs/src/authentication.md
@@ -0,0 +1,22 @@
1
+# Authentication
2
+
3
+The driver supports only authentication through plain text:
4
5
+In case you are using plain-text authentication on the server, you can set the `credentials` when creating the
6
+`Client` instance, or provide the instance of `PlainTextAuthProvider` through `authProvider` client option.
7
8
+```javascript
9
+const scylla = require("scylladb-driver-alpha");
10
+const client = new scylla.Client({
11
+ contactPoints,
12
+ credentials: { username: 'my_username', password: 'very_secure_password!'}
13
+});
14
+```
15
16
17
18
19
20
+ authProvider: new scylla.auth.PlainTextAuthProvider('my_username', 'very_secure_password!')
21
22
0 commit comments