backend/gcs: Use new endpoints for Google OAuth

This is a consequence of googleapis/google-cloud-common#260.
This commit is contained in:
Roberto Jung Drebes 2019-08-14 00:24:34 +02:00 committed by Martin Atkins
parent fcd4e9822f
commit b459a92575
1 changed files with 1 additions and 1 deletions

View File

@ -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)))