Skip to content

Commit 0da7a02

Browse files
committed
updated CHANGELOG
1 parent a64211c commit 0da7a02

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@ $connectionOptions = [
1616
...
1717
ArangoDBClient\ConnectionOptions::OPTION_AUTH_TYPE => 'Bearer', // authentication via JWT!
1818
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
2020
];
2121
```
2222
Note that the server's JWT _secret_, not a generated JWT, must go into the `OPTION_AUTH_PASSWD`
2323
ConnectionOption.
2424

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+
2536
The driver now supports the following options for document CRUD operations:
2637
- "overwriteMode"
2738
- "silent"

0 commit comments

Comments
 (0)