主頁 > 服務(wù)與支持 > 開發(fā)平臺(tái) > 服務(wù)端API參考 > 登錄鑒權(quán) > 接口參考 刷新Token
更新時(shí)間:2019-11-19
該接口提供刷新Token功能,根據(jù)傳入的Token,刷新Token失效時(shí)間并返回結(jié)果。
請(qǐng)求方法 |
PUT |
---|---|
請(qǐng)求地址 |
/rest/usg/sso/v1/token |
傳輸協(xié)議 |
HTTPS |
參數(shù) |
是否必須 |
類型 |
位置 |
描述 |
---|---|---|---|---|
Authorization |
是 |
String |
Header |
接口鑒權(quán)頭域。包括HTTP基本認(rèn)證標(biāo)識(shí)(Basic)和Base64編碼的Token字符串。 |
參數(shù) |
類型 |
描述 |
---|---|---|
returnCode |
String |
業(yè)務(wù)返回碼。 |
returnMessage |
String |
返回描述。 |
requestId |
String |
統(tǒng)一的請(qǐng)求ID。 |
achievementTime |
String |
響應(yīng)返回時(shí)間。 |
data |
Token信息。 |
PUT /rest/usg/sso/v1/token Connection: keep-alive Authorization: Basic SE04OEpPT2pnWFB1Q2xCWkc5ZDY2TkhQYXdnZjVxNmVE Content-Type: application/json Content-Length: 0 Host: api.meeting.huaweicloud.com User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)
HTTP/1.1 200 Date: Wed, 27 Mar 2019 04:08:01 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 714 Connection: keep-alive { "returnCode":"000000000", "returnMessage":"Success", "achievementTime":"2019-03-27 04:07:12.971", "requestId":"b0a16499b728432f8545b47f43c9eeb8", "data": { "accessToken":"HM88JOOjgXPuClBZG9d66NHPawgf5q6eD", "tokenIp":"124.160.218.132", "validPeriod":53437, "expireTime":1553713069, "user": { "userId":"ff8080816933ab4801694865840a00c2", "ucloginAccount":"user01", "serviceAccount":"sip:+8657******@huaweicloud.com", "numberHA1":"2758cce3d1ed864769694137e6a5bc8a", "alias1":null, "companyId":"41916", "spId":"ff808081691589280169192f359c0029", "companyDomain":null, "realm":"huaweicloud.com", "userType":2, "adminType":2, "name":"user01" }, "clientType":0, "forceLoginInd":null, "firstLogin":false, "pwdExpired":false, "daysPwdAvailable":null } }
curl -k -i -H 'content-type: application/json' -X PUT -H 'Authorization:Basic RllIRk1OMm9pckx1a21vNVNKRUlCYzdBU2xLcm9NVnlj' 'https://api.meeting.huaweicloud.com/rest/usg/sso/v1/token'