Skip to content

Commit cb77021

Browse files
fix: remove token padding strip (GoogleCloudPlatform#245)
1 parent 94d0d65 commit cb77021

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

google/cloud/sql/connector/refresh_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ async def _get_ephemeral(
161161
data = {"public_key": pub_key}
162162

163163
if enable_iam_auth:
164-
# TODO: remove this once issue with OAuth2 Tokens is resolved.
165-
# See https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/issues/137
166-
data["access_token"] = credentials.token.rstrip(".")
164+
data["access_token"] = credentials.token
167165

168166
resp = await client_session.post(
169167
url, headers=headers, json=data, raise_for_status=True

0 commit comments

Comments
 (0)