We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e80713 commit 1bc2ee4Copy full SHA for 1bc2ee4
google/cloud/sql/connector/refresh_utils.py
@@ -150,8 +150,11 @@ async def _get_ephemeral(
150
request = google.auth.transport.requests.Request()
151
credentials.refresh(request)
152
153
+ # TODO: remove this once issue with OAuth2 Tokens is resolved.
154
+ # See https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/issues/137
155
+
156
headers = {
- "Authorization": f"Bearer {credentials.token}",
157
+ "Authorization": f"Bearer {credentials.token.rstrip('.')}",
158
}
159
160
url = "https://www.googleapis.com/sql/{}/projects/{}/instances/{}/createEphemeral".format(
0 commit comments