Skip to content

Commit

Permalink
Merge pull request #75 add alias IamTokenCredentials for TokenService…
Browse files Browse the repository at this point in the history
…Credentials
  • Loading branch information
rekby authored Dec 21, 2022
2 parents 6086741 + 3a56d56 commit 71cc176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ydb-api-protos
5 changes: 5 additions & 0 deletions ydb/aio/iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ async def _make_token_request(self):
return {"access_token": response.iam_token, "expires_in": expires_in}


# IamTokenCredentials need for backward compatibility
# Deprecated
IamTokenCredentials = TokenServiceCredentials


class JWTIamCredentials(TokenServiceCredentials, auth.BaseJWTCredentials):
def __init__(
self,
Expand Down

0 comments on commit 71cc176

Please sign in to comment.