1
0
mirror of synced 2025-12-15 19:34:01 +08:00

更新文档,添加示例文档链接

This commit is contained in:
yadong.zhang
2019-03-22 22:46:53 +08:00
parent b794f674c0
commit 0461ce14dc

View File

@@ -68,19 +68,20 @@ JustAuth如你所见它仅仅是一个**第三方授权登录**的**工具
```
- 调用api
```java
// 创建授权request
AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.redirectUri("redirectUri")
.build());
// 自动跳转到授权页面
authRequest.authorize(response);
// 返回授权页面,可自行跳转
// 生成授权页面
authRequest.authorize();
// 授权登录后会返回一个code用这个code进行登录
authRequest.login("code");
```
具体的例子可以参考:[实现Gitee授权登录](http://t.cn/ExDKxQs)
#### API列表
| :computer: 平台 | :coffee: API类 | :page_facing_up: SDK |
|:------:|:-------:|:-------:|