mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-02-09 04:03:49 +02:00
[#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.
|
||||
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user