From 288d53a55a598b9ff7515b573eff7fa79f53aae2 Mon Sep 17 00:00:00 2001 From: Jen O'Byrne Date: Mon, 22 Jul 2019 16:31:12 +0200 Subject: [PATCH] Add extra scopes Adding missing scopes when creating an instance of the default client. Now that these are added, we can run the server with the service account without getting a permissions error --- database/database.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/database.go b/database/database.go index aa010b0a..6d94808a 100644 --- a/database/database.go +++ b/database/database.go @@ -125,6 +125,8 @@ func newDBDialer(server string, logConn bool) func() (c redis.Conn, err error) { func newRemoteClient(host string) (*remote_api.Client, error) { client, err := google.DefaultClient(context.TODO(), "https://www.googleapis.com/auth/appengine.apis", + "https://www.googleapis.com/auth/userinfo.email", + "https://www.googleapis.com/auth/cloud-platform", ) if err != nil { return nil, err