Add a TODO to make scopes configurable

This commit is contained in:
Mislav Marohnić 2020-01-13 20:17:20 +01:00
parent bbeb558fce
commit d6a437a93c

View file

@ -47,6 +47,7 @@ func (oa *OAuthFlow) ObtainAccessToken() (accessToken string, err error) {
q := url.Values{}
q.Set("client_id", oa.ClientID)
q.Set("redirect_uri", fmt.Sprintf("http://localhost:%d/callback", port))
// TODO: make scopes configurable
q.Set("scope", "repo")
q.Set("state", state)