📝 修改文档中的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

@ -5,8 +5,8 @@
<strong>Login, so easy.</strong> <strong>Login, so easy.</strong>
</p> </p>
<p align="center"> <p align="center">
<a target="_blank" href="https://search.maven.org/search?q=g:%22me.zhyd%22%20AND%20a:%22JustAuth%22"> <a target="_blank" href="https://search.maven.org/search?q=JustAuth">
<img src="https://img.shields.io/badge/Maven Central-1.0.0-blue.svg" ></img> <img src="https://img.shields.io/badge/Maven Central-1.3.1-blue.svg" ></img>
</a> </a>
<a target="_blank" href="https://gitee.com/yadong.zhang/JustAuth/blob/master/LICENSE"> <a target="_blank" href="https://gitee.com/yadong.zhang/JustAuth/blob/master/LICENSE">
<img src="https://img.shields.io/apm/l/vim-mode.svg?color=yellow" ></img> <img src="https://img.shields.io/apm/l/vim-mode.svg?color=yellow" ></img>

View File

@ -154,4 +154,17 @@ public class AuthRequestTest {
// 授权登录后会返回一个code用这个code进行登录 // 授权登录后会返回一个code用这个code进行登录
AuthResponse login = authRequest.login("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");
}
} }