OAuth授权
Last updated
Last updated
GET
https://service.xxx.com/platform/login.html
最后登录页拼接完成后为: platform/ 授权登录成功后携带code重定向到redirectUrl
appKey*
String
商家appKey
redirectUrl*
String
授权登录成功后跳转页面
state
String
商家传入状态字段
POST
https://service.xxx.com/platformapi/chainup/open/auth/token
需要将参数表格中的数据包装成json字符串 利用rsa 进行参数加密和签名 作为body中的data和sign
app_id*
String
商家唯一app_id
time*
String
请求时间
sign*
String
用rsa_third_pri对query中的数据签名
data*
String
rsa_saas_pub加密query中数据
以下为参与rsa加密的参数
code
string
YES
2ae04ed9165624419bad68e9e0f3f29fbd
调用第一步login用户登陆时返回的code
POST
https://service.xxx.com/platformapi/chainup/open/auth/refreshToken
需要将参数表格中的数据包装成json字符串 利用rsa 进行参数加密和签名 作为body中的data和sign
Content-Type*
String
application/json
app_id*
String
商家唯一appId
time*
String
请求时间
data*
String
用rsa_third_pri对query中的数据签名
sign*
String
rsa_saas_pub加密query中数据
以下为参与rsa加密的参数
refreshToken
string
YES
4dbca5afca8a46f48d863d18bsdd644731
获取token时收到的 refresh_token
token
string
YES
2ae04ed9165624419bad68e9e0f3f29fbd
token之前授权的token
openId
string
YES
4dbca5afca8a46f48d863d18bsdd644731
该授权用户所属该商户下的唯一openId