Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 288d53a

Browse files
jen-obyrneJen O'Byrne
authored andcommitted
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
1 parent af0f2af commit 288d53a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

database/database.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ func newDBDialer(server string, logConn bool) func() (c redis.Conn, err error) {
125125
func newRemoteClient(host string) (*remote_api.Client, error) {
126126
client, err := google.DefaultClient(context.TODO(),
127127
"https://www.googleapis.com/auth/appengine.apis",
128+
"https://www.googleapis.com/auth/userinfo.email",
129+
"https://www.googleapis.com/auth/cloud-platform",
128130
)
129131
if err != nil {
130132
return nil, err

0 commit comments

Comments
 (0)