跳到主要内容

刷新令牌

类型: GET

描述: /public/uaa/oauth2/token?client_id={client_id}&client_secret=${client_secret}&grant_type={grant_type}&refresh_token={refresh_token}

参数

名称类型必填默认值描述取值范围
client_idstring机构身份标识请向 XT.COM 申请
client_secretstring机构密钥请向 XT.COM 申请
grant_typestring授权类型,固定值refresh_token
refresh_tokenstring申请令牌时返回的 refresh_token 字段

响应示例

响应
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"user_id": "12345678",
"access_token": "eyJhbGciOiJSUzI1NiJ9....", // 用于访问授权接口的令牌
"refresh_token": "eyJhbGciOiJSUzI1NiJ9....", // 用于刷新访问令牌的令牌
"expires_in": 15551999, // access_token 过期前的毫秒数
"refresh_expires_in": 18143999, // refresh_token 过期前的毫秒数
"client_id": "35LF2FSLHX5IRQA4", // 机构身份标识
"scope": "userinfo" // 授权范围
}
}