Use read-only github scope
This commit is contained in:
parent
a488b35e08
commit
70c9b13a9a
|
@ -29,7 +29,7 @@ const (
|
||||||
func RedirectToLogin(w http.ResponseWriter, r *http.Request) {
|
func RedirectToLogin(w http.ResponseWriter, r *http.Request) {
|
||||||
urlStr := authorizeURL + "?" + url.Values{
|
urlStr := authorizeURL + "?" + url.Values{
|
||||||
"client_id": {config.Get().Github.ClientID},
|
"client_id": {config.Get().Github.ClientID},
|
||||||
"scope": {"user"},
|
"scope": {"read:user"},
|
||||||
}.Encode()
|
}.Encode()
|
||||||
http.Redirect(w, r, urlStr, http.StatusTemporaryRedirect)
|
http.Redirect(w, r, urlStr, http.StatusTemporaryRedirect)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue