We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8564e9 + ae76118 commit b02e718Copy full SHA for b02e718
ydb/iam/auth.py
@@ -16,8 +16,13 @@
16
from yandex.cloud.iam.v1 import iam_token_service_pb2_grpc
17
from yandex.cloud.iam.v1 import iam_token_service_pb2
18
except ImportError:
19
- iam_token_service_pb2_grpc = None
20
- iam_token_service_pb2 = None
+ try:
+ # This attempt is to enable the IAM auth inside the YDB repository on GitHub
21
+ from ydb.public.api.client.yc_public.iam import iam_token_service_pb2_grpc
22
+ from ydb.public.api.client.yc_public.iam import iam_token_service_pb2
23
+ except ImportError:
24
+ iam_token_service_pb2_grpc = None
25
+ iam_token_service_pb2 = None
26
27
try:
28
import requests
0 commit comments