Skip to content

Migrate to new Go client library credentials #646

@enocom

Description

@enocom

The oauth2 package is no longer the preferred choice for token sources. Instead, we should use:

https://pkg.go.dev/cloud.google.com/go/auth#Credentials

This means adding a new API option, replacing the internals with auth.Credentials, and directing users away from our current WithTokenSource and related options that use oauth2.

Also we should be using https://pkg.go.dev/cloud.google.com/go/[email protected]/credentials#DetectDefault.

This is a companion to GoogleCloudPlatform/cloud-sql-go-connector#904.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions