-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
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.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.