mirror of
https://codeberg.org/crowci/crow.git
synced 2025-08-12 06:02:53 +03:00
Adjust github scopes and clarify documentation. (#2578)
Add scopes needed when creating Github application. Removed "repo:status" scope, because it is included in already requested "repo" scope. Fixes: #1081
This commit is contained in:
@@ -408,7 +408,7 @@ func (c *client) newConfig(req *http.Request) *oauth2.Config {
|
||||
return &oauth2.Config{
|
||||
ClientID: c.Client,
|
||||
ClientSecret: c.Secret,
|
||||
Scopes: []string{"repo", "repo:status", "user:email", "read:org"},
|
||||
Scopes: []string{"repo", "user:email", "read:org"},
|
||||
Endpoint: oauth2.Endpoint{
|
||||
AuthURL: fmt.Sprintf("%s/login/oauth/authorize", c.url),
|
||||
TokenURL: fmt.Sprintf("%s/login/oauth/access_token", c.url),
|
||||
|
Reference in New Issue
Block a user