1
0
mirror of synced 2026-04-26 11:42:28 +08:00

💡 修改注释,增加QQ登录支持

This commit is contained in:
yadong.zhang
2019-05-17 10:19:52 +08:00
parent 755b72de99
commit 8520d0b24c
15 changed files with 174 additions and 3 deletions

View File

@@ -296,6 +296,35 @@ public enum ApiUrl {
throw new AuthException(ResponseStatus.UNSUPPORTED);
}
@Override
public String refresh() {
throw new AuthException(ResponseStatus.UNSUPPORTED);
}
},
/**
* QQ
*/
QQ {
@Override
public String authorize() {
return "https://graph.qq.com/oauth2.0/authorize";
}
@Override
public String accessToken() {
return "https://graph.qq.com/oauth2.0/token";
}
@Override
public String userInfo() {
return "https://graph.qq.com/user/get_user_info";
}
@Override
public String revoke() {
throw new AuthException(ResponseStatus.UNSUPPORTED);
}
@Override
public String refresh() {
throw new AuthException(ResponseStatus.UNSUPPORTED);