[#207] use read-only scopes for the GitHub OAuth2 provider
This commit is contained in:
parent
7926501649
commit
88d8cec3d9
|
@ -21,7 +21,7 @@ type Github struct {
|
||||||
// NewGithubProvider creates new Github provider instance with some defaults.
|
// NewGithubProvider creates new Github provider instance with some defaults.
|
||||||
func NewGithubProvider() *Github {
|
func NewGithubProvider() *Github {
|
||||||
return &Github{&baseProvider{
|
return &Github{&baseProvider{
|
||||||
scopes: []string{"user"},
|
scopes: []string{"read:user", "user:email"},
|
||||||
authUrl: "https://github.com/login/oauth/authorize",
|
authUrl: "https://github.com/login/oauth/authorize",
|
||||||
tokenUrl: "https://github.com/login/oauth/access_token",
|
tokenUrl: "https://github.com/login/oauth/access_token",
|
||||||
userApiUrl: "https://api.github.com/user",
|
userApiUrl: "https://api.github.com/user",
|
||||||
|
|
Loading…
Reference in New Issue