11import grpc .aio
22import time
3- import json
43
54import abc
65import 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
0 commit comments