统一身份认证服务 IAM-查询OpenID Connect身份提供商配置:响应示例

时间:2023-11-01 16:23:04

响应示例

状态码为 200 时:

创建成功。

{   "openid_connect_config" : {     "access_mode" : "program_console",     "idp_url" : "https://accounts.example.com",     "client_id" : "client_id_example",     "authorization_endpoint" : "https://accounts.example.com/o/oauth2/v2/auth",     "scope" : "openid",     "response_type" : "id_token",     "response_mode" : "form_post",     "signing_key" : "{\"keys\":[{\"kty\":\"RSA\",\"e\":\"AQAB\",\"use\":\"sig\",\"n\":\"example\",\"kid\":\"kid_example\",\"alg\":\"RS256\"}]}"   } }

状态码为 400 时:

参数无效。

{   "error_msg" : "Request body is invalid.",   "error_code" : "IAM.0011" }

状态码为 401 时:

认证失败。

{   "error_msg" : "Request parameter %(key)s is invalid.",   "error_code" : "IAM.0007" }

状态码为 403 时:

没有操作权限。

{   "error_msg" : "Policy doesn't allow %(actions)s to be performed.",   "error_code" : "IAM.0003" }

状态码为 404 时:

未找到相应的资源。

{   "error_msg" : "Could not find %(target)s: %(target_id)s.",   "error_code" : "IAM.0004" }

状态码为 500 时:

系统内部异常。

{   "error_msg" : "An unexpected error prevented the server from fulfilling your request.",   "error_code" : "IAM.0006" }
support.huaweicloud.com/api-iam/iam_13_0209.html