应用身份管理服务 ONEACCESS-刷新Access Token:请求示例

时间:2024-01-18 19:43:29

请求示例

基于refresh_token刷新access_token,refresh_token通过调用获取AccessToken接口的响应值获取,client_id和client_secret使用注册应用时分配的ClientId和ClientSecret,grant_type为固定值refresh_token。

POST https://{domain_name}/api/v1/oauth2/token

Content-Type: application/x-www-form-urlencoded

client_id=NzZeWuiJa91dPSRdZQChMazIh13AW...&
client_secret=NzZ******3AW&
refresh_token=e8e******7e3&
grant_type=refresh_token
support.huaweicloud.com/api-oneaccess/RenewOAuthToken.html