Skip to content

Commit c218326

Browse files
authored
Update README.md
1 parent 3aaece0 commit c218326

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ or:
7171
<?php
7272

7373
use YdbPlatform\Ydb\Ydb;
74+
use YdbPlatform\Ydb\Auth\AccessTokenAuthentication;
7475

7576
$config = [
7677

@@ -133,6 +134,7 @@ or
133134
<?php
134135

135136
use YdbPlatform\Ydb\Ydb;
137+
use YdbPlatform\Ydb\Auth\OAuthTokenAuthentication;
136138

137139
$config = [
138140

@@ -190,6 +192,7 @@ or
190192
<?php
191193

192194
use YdbPlatform\Ydb\Ydb;
195+
use YdbPlatform\Ydb\Auth\JwtWithPrivateKeyAuthentication;
193196

194197
$config = [
195198
'database' => '/ru-central1/b1glxxxxxxxxxxxxxxxx/etn0xxxxxxxxxxxxxxxx',
@@ -246,6 +249,7 @@ or:
246249
<?php
247250

248251
use YdbPlatform\Ydb\Ydb;
252+
use YdbPlatform\Ydb\Auth\JwtWithJsonAuthentication;
249253

250254
$config = [
251255
'database' => '/ru-central1/b1glxxxxxxxxxxxxxxxx/etn0xxxxxxxxxxxxxxxx',
@@ -290,11 +294,12 @@ $config = [
290294

291295
$ydb = new Ydb($config);
292296
```
293-
297+
or
294298
```php
295299
<?php
296300

297301
use YdbPlatform\Ydb\Ydb;
302+
use YdbPlatform\Ydb\Auth\AnonymousAuthentication;
298303

299304
$config = [
300305

@@ -311,6 +316,7 @@ $config = [
311316
'iam_config' => [
312317
'temp_dir' => './tmp', // Temp directory
313318
],
319+
'credentials' => new MetadataAuthentication()
314320
];
315321

316322
$ydb = new Ydb($config);
@@ -349,6 +355,7 @@ or:
349355
<?php
350356

351357
use YdbPlatform\Ydb\Ydb;
358+
use YdbPlatform\Ydb\Auth\AnonymousAuthentication;
352359

353360
$config = [
354361

0 commit comments

Comments
 (0)