1
0
mirror of synced 2025-12-24 08:36:38 +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 - 调用api
```java ```java
// 创建授权request
AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder() AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
.clientId("clientId") .clientId("clientId")
.clientSecret("clientSecret") .clientSecret("clientSecret")
.redirectUri("redirectUri") .redirectUri("redirectUri")
.build()); .build());
// 自动跳转到授权页面 // 生成授权页面
authRequest.authorize(response);
// 返回授权页面,可自行跳转
authRequest.authorize(); authRequest.authorize();
// 授权登录后会返回一个code用这个code进行登录 // 授权登录后会返回一个code用这个code进行登录
authRequest.login("code"); authRequest.login("code");
``` ```
具体的例子可以参考:[实现Gitee授权登录](http://t.cn/ExDKxQs)
#### API列表 #### API列表
| :computer: 平台 | :coffee: API类 | :page_facing_up: SDK | | :computer: 平台 | :coffee: API类 | :page_facing_up: SDK |
|:------:|:-------:|:-------:| |:------:|:-------:|:-------:|