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
|
http://sa-oauth-server.com:8001/oauth2/token
|
||||||
?grant_type=password
|
?grant_type=password
|
||||||
&client_id={value}
|
&client_id={value}
|
||||||
|
&client_secret={value}
|
||||||
&username={value}
|
&username={value}
|
||||||
&password={value}
|
&password={value}
|
||||||
```
|
```
|
||||||
|
|
||||||
参数详解:
|
参数详解:
|
||||||
|
|
||||||
| 参数 | 是否必填 | 说明 |
|
| 参数 | 是否必填 | 说明 |
|
||||||
| :-------- | :-------- | :-------- |
|
| :-------- | :-------- | :-------- |
|
||||||
| grant_type| 是 | 返回类型,这里请填写:password|
|
| grant_type | 是 | 返回类型,这里请填写:password|
|
||||||
| client_id | 是 | 应用id |
|
| client_id | 是 | 应用id |
|
||||||
| username | 是 | 用户的Server端账号 |
|
| client_secret | 是 | 应用秘钥 |
|
||||||
| password | 是 | 用户的Server端密码 |
|
| username | 是 | 用户的Server端账号 |
|
||||||
| scope | 否 | 具体请求的权限,多个用逗号隔开 |
|
| password | 是 | 用户的Server端密码 |
|
||||||
|
| scope | 否 | 具体请求的权限,多个用逗号隔开 |
|
||||||
|
|
||||||
接口返回示例:
|
接口返回示例:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user