ydb-platform / ydb-sqlalchemy

YQL Dialect for SQLAlchemy
Apache License 2.0
18 stars 5 forks source link

authorization is not supported #30

Closed kabulov closed 3 months ago

kabulov commented 4 months ago

if in connection.py in driver we add credentials=ydb.credentials_from_env_variables() like this:

155     def _create_driver(self):
156         driver_config = ydb.DriverConfig(
157             endpoint=self.endpoint,
158             database=self.database,
159             table_client_settings=self._get_table_client_settings(),
160             credentials=ydb.credentials_from_env_variables(),
161         )

we can use: export YDB_ACCESS_TOKEN_CREDENTIALS=my_token

kabulov commented 3 months ago

fixed in https://github.com/ydb-platform/ydb-sqlalchemy/releases/tag/0.0.1b12 code: https://github.com/ydb-platform/ydb-sqlalchemy/pull/39