IAM 身份中心-创建令牌:请求示例

时间:2024-09-13 17:36:20

请求示例

创建访问令牌。

POST https://{hostname}/v1/tokens

{
  "client_id" : "example_client_id",
  "client_secret" : "example_client_secret",
  "code" : "1234567890123456",
  "device_code" : null,
  "grant_type" : "authorization_code",
  "redirect_uri" : "https://example-redirect.example.com/redirect/url",
  "refresh_token" : null,
  "scopes" : [ "openid" ]
}
support.huaweicloud.com/api-identitycenter/CreateToken.html