mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-07 01:08:24 +08:00
📝 修改文档中的jar版本
This commit is contained in:
parent
4a271c583e
commit
fd90a63f40
@ -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>
|
||||||
|
|||||||
@ -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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user