v1.0+ 授权码模式获取token
开发中
POST
http://127.0.0.1:8080/oauth2/token
http://localhost:3000/oauth2/authorize?scope=server&client_id=pig&response_type=code&redirect_uri=https://pig4cloud.com
还是用的session
请求参数
Query 参数
grant_type
string
必需
示例值:
authorization_code
scope
string
必需
示例值:
client
code
string
必需
示例值:
-FQXs8zhJ1TgI3dwmQyzXe5kKgPpo-VRMvMOeIAtIOz00YjOGKm2Dwn6CsWcQNgTwh5vjG4ugekgoTGeeXxYXSB3q7_mKcy52Ba-Jetn6WWluubWQmzhXPDWg3_msN0l
redirect_uri
string
必需
示例值:
https://pig4cloud.com
Body 参数application/x-www-form-urlencoded
object {0}