From 6e2f35d46368cc436a77bcc19e615acfc63e7527 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 18 Aug 2016 13:13:56 +0100 Subject: [PATCH] Actually specify scopes... --- src/github.com/matrix-org/go-neb/realms/github/github.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/go-neb/realms/github/github.go b/src/github.com/matrix-org/go-neb/realms/github/github.go index 30028a2..c96c121 100644 --- a/src/github.com/matrix-org/go-neb/realms/github/github.go +++ b/src/github.com/matrix-org/go-neb/realms/github/github.go @@ -117,6 +117,7 @@ func (r *GithubRealm) RequestAuthSession(userID string, req json.RawMessage) int q.Set("client_secret", r.ClientSecret) q.Set("state", state) q.Set("redirect_uri", r.redirectURL) + q.Set("scope", "admin:repo_hook,admin:org_hook,repo") u.RawQuery = q.Encode() session := &GithubSession{ id: state, // key off the state for redirects