From 05c87274410fd825ff3c5b864ef2dd5103f9a8ef Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Tue, 23 Aug 2022 16:46:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sa-token-doc/doc/oauth2/oauth2-api.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/sa-token-doc/doc/oauth2/oauth2-api.md b/sa-token-doc/doc/oauth2/oauth2-api.md index 52009a9a..a214c271 100644 --- a/sa-token-doc/doc/oauth2/oauth2-api.md +++ b/sa-token-doc/doc/oauth2/oauth2-api.md @@ -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 | 否 | 具体请求的权限,多个用逗号隔开 | 接口返回示例: