summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralextarazanov <[email protected]>2023-04-03 12:30:47 +0300
committeralextarazanov <[email protected]>2023-04-03 12:30:47 +0300
commit7af8ba98bad602c669b4cabc3b38924064aca8ca (patch)
tree26f1f05a8a7f26cc26bbfaafd69ba2c5f5ad8add
parent63a0b917409ec5e57fe2263b1d6adeb6721e29ca (diff)
translation
Перевод для https://st.yandex-team.ru/ Локальная сборка без ошибок.
-rw-r--r--ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md
index b3aa4d1e2df..2e0cdf0fc2e 100644
--- a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md
+++ b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md
@@ -84,17 +84,18 @@ The following algorithm that is the same for all SDKs applies:
If the last step of the algorithm is selecting the **Metadata** mode, you can deploy a working application on VMs and in {{ yandex-cloud }} Cloud Functions without setting any environment variables.
-## Python {{ ydb-short-name }} SDK v2 (deprecated) specifics
+## Peculiarities of {{ ydb-short-name }} Python SDK v2 (deprecated version)
{% note warning %}
-The behavior of the Python SDK v2 (deprecated) differs from the one described above.
+The behavior of the {{ ydb-short-name }} Python SDK v2 (deprecated version) differs from the above-described version.
{% endnote %}
-1. For python {{ ydb-short-name }} SDK v2 the algorithm for determining the authentication mode and the necessary parameters from the environment variables in the `construct_credentials_from_environ()` method differs from the one used in other SDKs:
+* The algorithm of the `construct_credentials_from_environ()` function from the {{ ydb-short-name }} Python SDK v2:
- If the value of the `USE_METADATA_CREDENTIALS` environment variable is set to 1, the **Metadata** authentication mode is used.
- Otherwise, if the value of the `YDB_TOKEN` environment variable is set, the **Access Token** authentication mode is used, where this variable value is passed.
- Otherwise, if the value of the `SA_KEY_FILE` environment variable is set, the **System Account Key** authentication mode is used and the key is taken from the file whose name is specified in this variable.
- Or else, no authentication information is added to requests.
-2. If no object responsible for generating tokens is passed when initializing the driver, the [general procedure](#env) for reading environment variables applies.
+* If no object responsible for generating tokens is passed when initializing the driver, the [general procedure](#env) for reading environment variables applies.
+