mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 13:34:18 +08:00
完善文档
This commit is contained in:
parent
1fe63a82f9
commit
05c8727441
@ -189,19 +189,21 @@ redirect_uri#token=xxxx-xxxx-xxxx-xxxx
|
||||
http://sa-oauth-server.com:8001/oauth2/token
|
||||
?grant_type=password
|
||||
&client_id={value}
|
||||
&client_secret={value}
|
||||
&username={value}
|
||||
&password={value}
|
||||
```
|
||||
|
||||
参数详解:
|
||||
|
||||
| 参数 | 是否必填 | 说明 |
|
||||
| :-------- | :-------- | :-------- |
|
||||
| grant_type| 是 | 返回类型,这里请填写:password|
|
||||
| client_id | 是 | 应用id |
|
||||
| username | 是 | 用户的Server端账号 |
|
||||
| password | 是 | 用户的Server端密码 |
|
||||
| scope | 否 | 具体请求的权限,多个用逗号隔开 |
|
||||
| 参数 | 是否必填 | 说明 |
|
||||
| :-------- | :-------- | :-------- |
|
||||
| grant_type | 是 | 返回类型,这里请填写:password|
|
||||
| client_id | 是 | 应用id |
|
||||
| client_secret | 是 | 应用秘钥 |
|
||||
| username | 是 | 用户的Server端账号 |
|
||||
| password | 是 | 用户的Server端密码 |
|
||||
| scope | 否 | 具体请求的权限,多个用逗号隔开 |
|
||||
|
||||
接口返回示例:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user