Skip to content

Commit 8a36b2b

Browse files
committed
Style
1 parent 58a6ac9 commit 8a36b2b

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

ydb/aio/iam.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import grpc.aio
22
import time
3-
import json
43

54
import abc
65
import logging
@@ -72,7 +71,9 @@ def __init__(
7271
subject=None,
7372
):
7473
super(OAuth2JwtTokenExchangeCredentials, self).__init__()
75-
auth.BaseJWTCredentials.__init__(self, account_id, access_key_id, private_key, algorithm, token_service_url, subject)
74+
auth.BaseJWTCredentials.__init__(
75+
self, account_id, access_key_id, private_key, algorithm, token_service_url, subject
76+
)
7677
assert aiohttp is not None, "Install aiohttp library to use OAuth 2.0 token exchange credentials provider"
7778
self._token_exchange_url = token_exchange_url
7879

@@ -114,7 +115,12 @@ def __init__(
114115
):
115116
TokenServiceCredentials.__init__(self, iam_endpoint, iam_channel_credentials)
116117
auth.BaseJWTCredentials.__init__(
117-
self, account_id, access_key_id, private_key, auth.YANDEX_CLOUD_JWT_ALGORITHM, auth.YANDEX_CLOUD_IAM_TOKEN_SERVICE_URL
118+
self,
119+
account_id,
120+
access_key_id,
121+
private_key,
122+
auth.YANDEX_CLOUD_JWT_ALGORITHM,
123+
auth.YANDEX_CLOUD_IAM_TOKEN_SERVICE_URL,
118124
)
119125

120126
def _get_token_request(self):
@@ -133,7 +139,14 @@ def __init__(
133139
if url is None:
134140
url = auth.NEBIUS_CLOUD_IAM_TOKEN_EXCHANGE_URL
135141
OAuth2JwtTokenExchangeCredentials.__init__(
136-
self, url, account_id, access_key_id, private_key, auth.NEBIUS_CLOUD_JWT_ALGORITHM, auth.NEBIUS_CLOUD_IAM_TOKEN_SERVICE_AUDIENCE, account_id
142+
self,
143+
url,
144+
account_id,
145+
access_key_id,
146+
private_key,
147+
auth.NEBIUS_CLOUD_JWT_ALGORITHM,
148+
auth.NEBIUS_CLOUD_IAM_TOKEN_SERVICE_AUDIENCE,
149+
account_id,
137150
)
138151

139152

ydb/iam/auth.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,14 @@ def __init__(
204204
if url is None:
205205
url = NEBIUS_CLOUD_IAM_TOKEN_EXCHANGE_URL
206206
OAuth2JwtTokenExchangeCredentials.__init__(
207-
self, url, account_id, access_key_id, private_key, NEBIUS_CLOUD_JWT_ALGORITHM, NEBIUS_CLOUD_IAM_TOKEN_SERVICE_AUDIENCE, account_id
207+
self,
208+
url,
209+
account_id,
210+
access_key_id,
211+
private_key,
212+
NEBIUS_CLOUD_JWT_ALGORITHM,
213+
NEBIUS_CLOUD_IAM_TOKEN_SERVICE_AUDIENCE,
214+
account_id,
208215
)
209216

210217

0 commit comments

Comments
 (0)