[#207] use read-only scopes for the GitHub OAuth2 provider

This commit is contained in:
Takeshi Sato authored and GitHub committed 2022-07-24 18:04:53 +03:00
1 parent 7926501649
commit 88d8cec3d9
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ type Github struct {
// NewGithubProvider creates new Github provider instance with some defaults.
func NewGithubProvider() *Github {
return &Github{&baseProvider{
scopes: []string{"user"},
scopes: []string{"read:user", "user:email"},
authUrl: "https://github.com/login/oauth/authorize",
tokenUrl: "https://github.com/login/oauth/access_token",
userApiUrl: "https://api.github.com/user",