mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-06 16:58:24 +08:00
👽 更新文档
This commit is contained in:
parent
3589878b36
commit
ebccbb2d2f
@ -68,6 +68,8 @@ AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
|
||||
authRequest.authorize(response);
|
||||
// 返回授权页面,可自行调整
|
||||
authRequest.authorize();
|
||||
// 授权登陆后会返回一个code,用这个code进行登录
|
||||
authRequest.login("code");
|
||||
```
|
||||
|
||||
#### API列表
|
||||
|
||||
@ -29,6 +29,8 @@ public class AuthRequestTest {
|
||||
authRequest.authorize(response);
|
||||
// 返回授权页面,可自行调整
|
||||
authRequest.authorize();
|
||||
// 授权登陆后会返回一个code,用这个code进行登录
|
||||
authRequest.login("code");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -42,6 +44,8 @@ public class AuthRequestTest {
|
||||
authRequest.authorize(response);
|
||||
// 返回授权页面,可自行调整
|
||||
authRequest.authorize();
|
||||
// 授权登陆后会返回一个code,用这个code进行登录
|
||||
authRequest.login("code");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -55,5 +59,7 @@ public class AuthRequestTest {
|
||||
authRequest.authorize(response);
|
||||
// 返回授权页面,可自行调整
|
||||
authRequest.authorize();
|
||||
// 授权登陆后会返回一个code,用这个code进行登录
|
||||
authRequest.login("code");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user