Skip to content

Commit

Permalink
fix: remove token padding strip (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Jan 20, 2022
1 parent 94d0d65 commit cb77021
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions google/cloud/sql/connector/refresh_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ async def _get_ephemeral(
data = {"public_key": pub_key}

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

resp = await client_session.post(
url, headers=headers, json=data, raise_for_status=True
Expand Down

0 comments on commit cb77021

Please sign in to comment.