Browse Source

Actually specify scopes...

pull/36/head
Kegan Dougal 8 years ago
parent
commit
6e2f35d463
  1. 1
      src/github.com/matrix-org/go-neb/realms/github/github.go

1
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

Loading…
Cancel
Save