1
0
mirror of synced 2026-02-20 02:57:47 +08:00

👽 注释、文档

This commit is contained in:
yadong.zhang
2019-05-18 11:26:59 +08:00
parent 6186236a13
commit 79574a66e5
5 changed files with 47 additions and 4 deletions

View File

@@ -116,6 +116,19 @@ public class AuthRequestTest {
authRequest.login("code");
}
@Test
public void qqTest() {
AuthRequest authRequest = new AuthQqRequest(AuthConfig.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.redirectUri("redirectUri")
.build());
// 返回授权页面,可自行调整
String url = authRequest.authorize();
// 授权登录后会返回一个code用这个code进行登录
AuthResponse login = authRequest.login("code");
}
@Test
public void wechatTest() {
AuthRequest authRequest = new AuthWeChatRequest(AuthConfig.builder()