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

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

上级 b794f674
......@@ -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 |
|:------:|:-------:|:-------:|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册