1
0
mirror of synced 2026-02-19 18:47:46 +08:00

📝 修改文档中的jar版本

This commit is contained in:
yadong.zhang
2019-05-23 09:10:25 +08:00
parent 4a271c583e
commit fd90a63f40
2 changed files with 15 additions and 2 deletions

View File

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