Skip to content

Commit

Permalink
✏️ fix(oauth2): oauth2 scope typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SerinaNya committed Sep 12, 2024
1 parent fa3a732 commit 5f3e9ba
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions docs/advanced/oauth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ LittleSkin 支持 OAuth 2 服务端。你可以在你的应用中集成「使用
https://littleskin.cn/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code&scope={scope}
```

| 参数 | |
| --------------- | ----------------------- |
| `client_id` | ... |
| `redirect_uri` | ... |
| `response_type` | 固定值 `code` |
| `scope` | scope 列表,`,` 分隔 |
| 参数 ||
| --------------- | ---------------------- |
| `client_id` | ... |
| `redirect_uri` | ... |
| `response_type` | 固定值 `code` |
| `scope` | scope 列表,以空格分隔 |

`scope` 参数为空,则服务器默认为 `User.Read`

Expand Down Expand Up @@ -169,13 +169,13 @@ curl -X POST \
--data "scope={{scope}}"
```

| 参数 | |
| --------------- | ----------------------- |
| `grant_type` | 固定值 `refresh_token` |
| `refresh_token` | 先前获取到的刷新令牌 |
| `client_id` | ... |
| `client_secret` | ... |
| `scope` | scope 列表,`,` 分隔 |
| 参数 ||
| --------------- | ---------------------- |
| `grant_type` | 固定值 `refresh_token` |
| `refresh_token` | 先前获取到的刷新令牌 |
| `client_id` | ... |
| `client_secret` | ... |
| `scope` | scope 列表,以空格分隔 |

请求成功后将返回 JSON 响应。

Expand Down

0 comments on commit 5f3e9ba

Please sign in to comment.