Commit 6b117942 authored by Liang Ding's avatar Liang Ding

🎨 减少权限

parent d54dc0e3
...@@ -140,7 +140,7 @@ public class OAuthProcessor { ...@@ -140,7 +140,7 @@ public class OAuthProcessor {
String state = referer + ":::" + RandomStringUtils.randomAlphanumeric(16) + ":::cb=" + cb + ":::"; String state = referer + ":::" + RandomStringUtils.randomAlphanumeric(16) + ":::cb=" + cb + ":::";
STATES.add(state); STATES.add(state);
final String path = loginAuthURL + "?client_id=" + clientId + "&state=" + URLs.encode(state) + "&scope=public_repo,read:user,user:follow"; final String path = loginAuthURL + "?client_id=" + clientId + "&state=" + URLs.encode(state);
context.sendRedirect(path); 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