提交 ebccbb2d 编写于 作者: 智布道's avatar 智布道 👁

👽 更新文档

上级 3589878b
...@@ -68,6 +68,8 @@ AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder() ...@@ -68,6 +68,8 @@ AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
authRequest.authorize(response); authRequest.authorize(response);
// 返回授权页面,可自行调整 // 返回授权页面,可自行调整
authRequest.authorize(); authRequest.authorize();
// 授权登陆后会返回一个code,用这个code进行登录
authRequest.login("code");
``` ```
#### API列表 #### API列表
......
...@@ -29,6 +29,8 @@ public class AuthRequestTest { ...@@ -29,6 +29,8 @@ public class AuthRequestTest {
authRequest.authorize(response); authRequest.authorize(response);
// 返回授权页面,可自行调整 // 返回授权页面,可自行调整
authRequest.authorize(); authRequest.authorize();
// 授权登陆后会返回一个code,用这个code进行登录
authRequest.login("code");
} }
@Test @Test
...@@ -42,6 +44,8 @@ public class AuthRequestTest { ...@@ -42,6 +44,8 @@ public class AuthRequestTest {
authRequest.authorize(response); authRequest.authorize(response);
// 返回授权页面,可自行调整 // 返回授权页面,可自行调整
authRequest.authorize(); authRequest.authorize();
// 授权登陆后会返回一个code,用这个code进行登录
authRequest.login("code");
} }
@Test @Test
...@@ -55,5 +59,7 @@ public class AuthRequestTest { ...@@ -55,5 +59,7 @@ public class AuthRequestTest {
authRequest.authorize(response); authRequest.authorize(response);
// 返回授权页面,可自行调整 // 返回授权页面,可自行调整
authRequest.authorize(); authRequest.authorize();
// 授权登陆后会返回一个code,用这个code进行登录
authRequest.login("code");
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册