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

增加微信登录支持

This commit is contained in:
Yangkai.Shen
2019-05-17 15:26:31 +08:00
parent 2e0262ed7e
commit 87c2a1b2cd
6 changed files with 206 additions and 0 deletions

View File

@@ -329,6 +329,35 @@ public enum ApiUrl {
public String refresh() {
throw new AuthException(ResponseStatus.UNSUPPORTED);
}
},
/**
* 微信
*/
WECHAT {
@Override
public String authorize() {
return "https://open.weixin.qq.com/connect/oauth2/authorize";
}
@Override
public String accessToken() {
return "https://api.weixin.qq.com/sns/oauth2/access_token";
}
@Override
public String userInfo() {
return "https://api.weixin.qq.com/sns/userinfo";
}
@Override
public String revoke() {
throw new AuthException(ResponseStatus.UNSUPPORTED);
}
@Override
public String refresh() {
return "https://api.weixin.qq.com/sns/oauth2/refresh_token";
}
};
public abstract String authorize();