完善文档

This commit is contained in:
click33 2022-08-23 16:46:22 +08:00
parent 1fe63a82f9
commit 05c8727441

View File

@ -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 | 否 | 具体请求的权限,多个用逗号隔开 |
接口返回示例: 接口返回示例: