更新文档,添加示例文档链接
This commit is contained in:
@@ -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 |
|
||||||
|:------:|:-------:|:-------:|
|
|:------:|:-------:|:-------:|
|
||||||
|
|||||||
Reference in New Issue
Block a user