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 7171<?php
7272
7373use YdbPlatform\Ydb\Ydb;
74+ use YdbPlatform\Ydb\Auth\AccessTokenAuthentication;
7475
7576$config = [
7677
133134<?php
134135
135136use YdbPlatform\Ydb\Ydb;
137+ use YdbPlatform\Ydb\Auth\OAuthTokenAuthentication;
136138
137139$config = [
138140
190192<?php
191193
192194use YdbPlatform\Ydb\Ydb;
195+ use YdbPlatform\Ydb\Auth\JwtWithPrivateKeyAuthentication;
193196
194197$config = [
195198 'database' => '/ru-central1/b1glxxxxxxxxxxxxxxxx/etn0xxxxxxxxxxxxxxxx',
246249<?php
247250
248251use 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
297301use 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);
349355<?php
350356
351357use YdbPlatform\Ydb\Ydb;
358+ use YdbPlatform\Ydb\Auth\AnonymousAuthentication;
352359
353360$config = [
354361
You can’t perform that action at this time.
0 commit comments