File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,23 @@ $connectionOptions = [
16
16
...
17
17
ArangoDBClient\ConnectionOptions::OPTION_AUTH_TYPE => 'Bearer', // authentication via JWT!
18
18
ArangoDBClient\ConnectionOptions::OPTION_AUTH_USER => 'root', // user name
19
- ArangoDBClient\ConnectionOptions::OPTION_AUTH_PASSWD => 'jwt-secret-value', // server's JWT secret value,
19
+ ArangoDBClient\ConnectionOptions::OPTION_AUTH_PASSWD => 'jwt-secret-value', // server's JWT secret value
20
20
];
21
21
```
22
22
Note that the server's JWT _ secret_ , not a generated JWT, must go into the ` OPTION_AUTH_PASSWD `
23
23
ConnectionOption.
24
24
25
+ In order to use an already generated JWT without any username, set the ConnectionOptions
26
+ as follows:
27
+ ```
28
+ $connectionOptions = [
29
+ ArangoDBClient\ConnectionOptions::OPTION_DATABASE => '_system', // database name
30
+ ArangoDBClient\ConnectionOptions::OPTION_ENDPOINT => 'tcp://127.0.0.1:8529', // endpoint to connect to
31
+ ...
32
+ ArangoDBClient\ConnectionOptions::OPTION_AUTH_JWT => '.......', // full JWT needs to go here
33
+ ];
34
+ ```
35
+
25
36
The driver now supports the following options for document CRUD operations:
26
37
- "overwriteMode"
27
38
- "silent"
You can’t perform that action at this time.
0 commit comments