You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Connect with token to the cloud instance:<br>`jdbc:ydb:grpcs://<host>:2135/path/to/database?token=file:~/my_token`
21
15
* Connect with service account to the cloud instance: `jdbc:ydb:grpcs://<host>:2136/path/to/database?saFile=file:~/sa_key.json`
22
16
3) Execute queries, see example in [YdbDriverExampleTest.java](jdbc/src/test/java/tech/ydb/jdbc/YdbDriverExampleTest.java)
23
17
24
18
### Authentication modes
25
19
26
20
YDB JDBC Driver supports the following [authentication modes](https://ydb.tech/en/docs/reference/ydb-sdk/auth):
27
-
* Anonymous: no authentication, used when username and password are not specified and no other authentication properties configured;
28
-
* Static Credentials: used when username and password are specified;
29
-
* Access Token: used when `token` property is configured, needs YDB authentication token as printed by the `ydb auth get-token` CLI command;
30
-
* Metadata: used when `useMetadata` property is set to `true`, extracts the authentication data from the metadata of a virtual machine, serverless container or a serverless function running in a cloud environment;
31
-
* Service Account Key: used when `saFile` property is configured, extracts the service account key and uses it for authentication.
21
+
*`Anonymous`: no authentication, used when username and password are not specified and no other authentication properties configured;
22
+
*`Static Credentials`: used when username and password are specified;
23
+
*`Access Token`: used when `token` property is configured, needs YDB authentication token as printed by the `ydb auth get-token` CLI command;
24
+
*`Metadata`: used when `useMetadata` property is set to `true`, extracts the authentication data from the metadata of a virtual machine, serverless container or a serverless function running in a cloud environment;
25
+
*`Service Account Key`: used when `saFile` property is configured, extracts the service account key and uses it for authentication.
32
26
33
27
### Driver properties reference
34
28
@@ -44,3 +38,8 @@ File references for `saFile`, `token` or `secureConnectionCertificate` must be p
0 commit comments