IAM 身份中心-注册客户端:请求参数

时间:2024-04-29 15:46:44

请求参数

表1 请求Body参数

参数

是否必选

参数类型

描述

client_name

String

客户端名称。

最小长度:1

最大长度:1024

client_type

String

客户端的类型。该服务仅支持public作为客户端类型。

枚举值:

  • public

token_endpoint_auth_method

String

向令牌端点发送请求时所需的身份验证方法。

枚举值:

  • client_secret_post

scopes

Array of strings

客户端定义的作用域列表。授权后,此列表用于在授予访问令牌时限制权限。

grant_types

Array of strings

客户端可以在令牌端点使用的OAuth2.0授权类型数组。

枚举值:

  • urn:ietf:params:oauth:grant-type:device_code
  • authorization_code

response_types

Array of strings

客户端可以在授权端点使用的OAuth2.0授权类型数组。

枚举值:

  • code
support.huaweicloud.com/api-identitycenter/RegisterClient.html