Commit b83abb3e authored by Liang Ding's avatar Liang Ding

:octocat: 减少申请不必要的权限

parent 783fd06f
......@@ -146,7 +146,7 @@ public class OAuthGitHubProcessor {
STATES.put(state, URLs.encode(state));
final String path = "https://github.com/login/oauth/authorize" + "?client_id=" + clientId + "&state=" + state
+ "&scope=public_repo,user";
+ "&scope=public_repo,read:user,user:email,user:follow";
context.sendRedirect(path);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment