-
Notifications
You must be signed in to change notification settings - Fork 268
Open
Labels
Description
option.WithAuthCredentials is presently (v4.18.0) broken in 2 places:
- "google.golang.org/[email protected]" will not properly switch to using the "new auth lib". A newer version of google API library is required, such as the recent "google.golang.org/[email protected]".
option.WithScopes, used at present by the implementation will have no effect whenoption.WithAuthCredentialsis specified (assuming p.1). The scopes must be given directly to the constructor of the whateverauth.Credentialsobject needed; at least this is the case withexternalaccount.NewCredentials.- Because of the above, I'd say
internal.FirebaseScopesshall be exported from externally visible package. Those scopes are already publicly advertised API feature, not some sort of internal detail (https://developers.google.com/identity/protocols/oauth2/scopes).