File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 71
71
<?php
72
72
73
73
use YdbPlatform\Ydb\Ydb;
74
+ use YdbPlatform\Ydb\Auth\AccessTokenAuthentication;
74
75
75
76
$config = [
76
77
133
134
<?php
134
135
135
136
use YdbPlatform\Ydb\Ydb;
137
+ use YdbPlatform\Ydb\Auth\OAuthTokenAuthentication;
136
138
137
139
$config = [
138
140
190
192
<?php
191
193
192
194
use YdbPlatform\Ydb\Ydb;
195
+ use YdbPlatform\Ydb\Auth\JwtWithPrivateKeyAuthentication;
193
196
194
197
$config = [
195
198
'database' => '/ru-central1/b1glxxxxxxxxxxxxxxxx/etn0xxxxxxxxxxxxxxxx',
246
249
<?php
247
250
248
251
use YdbPlatform\Ydb\Ydb;
252
+ use YdbPlatform\Ydb\Auth\JwtWithJsonAuthentication;
249
253
250
254
$config = [
251
255
'database' => '/ru-central1/b1glxxxxxxxxxxxxxxxx/etn0xxxxxxxxxxxxxxxx',
@@ -290,11 +294,12 @@ $config = [
290
294
291
295
$ydb = new Ydb($config);
292
296
```
293
-
297
+ or
294
298
``` php
295
299
<?php
296
300
297
301
use YdbPlatform\Ydb\Ydb;
302
+ use YdbPlatform\Ydb\Auth\AnonymousAuthentication;
298
303
299
304
$config = [
300
305
@@ -311,6 +316,7 @@ $config = [
311
316
'iam_config' => [
312
317
'temp_dir' => './tmp', // Temp directory
313
318
],
319
+ 'credentials' => new MetadataAuthentication()
314
320
];
315
321
316
322
$ydb = new Ydb($config);
349
355
<?php
350
356
351
357
use YdbPlatform\Ydb\Ydb;
358
+ use YdbPlatform\Ydb\Auth\AnonymousAuthentication;
352
359
353
360
$config = [
354
361
You can’t perform that action at this time.
0 commit comments