Skip to content

Commit

Permalink
fix: remove unnecessary token parsing (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom committed Jan 18, 2022
1 parent 58e2efa commit e138611
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proxy/certs/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ func (s *RemoteCertSource) Local(instance string) (tls.Certificate, error) {
if tokErr != nil {
return tls.Certificate{}, tokErr
}
// TODO: remove this once issue with OAuth2 Tokens is resolved.
// See https://github.com/GoogleCloudPlatform/cloudsql-proxy/issues/852.
generateEphemeralCertRequest.AccessToken = strings.TrimRight(tok.AccessToken, ".")
generateEphemeralCertRequest.AccessToken = tok.AccessToken
}
req := s.serv.Connect.GenerateEphemeralCert(p, regionName, generateEphemeralCertRequest)

Expand Down

0 comments on commit e138611

Please sign in to comment.