backend/gcs: Use new endpoints for Google OAuth
This is a consequence of googleapis/google-cloud-common#260.
This commit is contained in:
parent
fcd4e9822f
commit
b459a92575
|
@ -138,7 +138,7 @@ func (b *Backend) configure(ctx context.Context) error {
|
||||||
Email: account.ClientEmail,
|
Email: account.ClientEmail,
|
||||||
PrivateKey: []byte(account.PrivateKey),
|
PrivateKey: []byte(account.PrivateKey),
|
||||||
Scopes: []string{storage.ScopeReadWrite},
|
Scopes: []string{storage.ScopeReadWrite},
|
||||||
TokenURL: "https://accounts.google.com/o/oauth2/token",
|
TokenURL: "https://oauth2.googleapis.com/token",
|
||||||
}
|
}
|
||||||
|
|
||||||
opts = append(opts, option.WithHTTPClient(conf.Client(ctx)))
|
opts = append(opts, option.WithHTTPClient(conf.Client(ctx)))
|
||||||
|
|
Loading…
Reference in New Issue