使用授权code兑换用户令牌
正式环境
https://accounts.zwsoft.cn
正式环境
https://accounts.zwsoft.cn
POST
/connect/token
公开
最后修改时间:2023-09-14 07:33:15
刷新令牌有效时长为30天,请注意进行令牌持久化和令牌刷新
请求参数
Body 参数application/x-www-form-urlencoded
client_id
string
客户端ID
示例值:
TestClient
scope
string
可选
示例值:
openid phone email profile offline_access ZMS.UserDetails.Read
redirect_uri
string
必需
示例值:
https://web.zwsoft.cn/login/callback/
grant_type
string
必需
示例值:
authorization_code
code
string
用户授权code
示例值:
hsxMFWUS0n1-3NRvocXdy3-f2a6gT2afuqr_S19ThLs
code_verifier
string
必需
示例值:
d649tj6k54l8u6d53xc556fse564egr56hj48yt5njm4z89d2s
示例代码
返回响应
修改于 2023-09-14 07:33:15