禁用IdP配置
更新时间:2026-07-14
禁用IdP配置
- 禁用指定的 IdP 配置。
OpenAPI Explorer
去调试
您可以在 OpenAPI Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1POST /v{version}/agent-identity/user-pool/idp-config/disable HTTP/1.1
2Host: identity.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其他特殊头域
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号 |
| userPoolId | String | 是 | RequestBody参数 | 用户池 ID |
| id | String | 是 | RequestBody参数 | IdP 配置 ID |
返回状态码
成功返回200,失败返回见错误码
返回头域
除公共头域外,无其他特殊头域
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| id | String | IdP 配置 ID |
| name | String | 显示名称 |
| idpType | String | 协议类型:OAUTH2 / OIDC / CAS |
| idpProvider | String | OAuth2 提供方:CUSTOM / DINGTALK / FEISHU;非 OAuth2 为 null |
| clientId | String | OAuth2 client_id |
| clientSecret | String | client_secret(get 返回明文,list 不返回) |
| discoveryUrl | String | Discovery URL |
| authorizationEndpoint | String | 授权端点 |
| tokenEndpoint | String | Token 端点 |
| userinfoEndpoint | String | UserInfo 端点 |
| scopes | List |
请求的 scope |
| userIdClaim | String | 用户 ID 映射字段 |
| displayNameClaim | String | 显示名称映射字段 |
| autoCreateUser | Boolean | 是否自动创建用户 |
| enabled | Boolean | 是否启用 |
| callbackUrl | String | 统一 IdP 回调地址(运行时派生) |
| createdAt | DateTime | 创建时间 |
请求示例
Plain Text
1{
2 "userPoolId": "string",
3 "id": "string"
4}
返回示例
Plain Text
1{
2 "id": "string",
3 "name": "string",
4 "idpType": "string",
5 "idpProvider": "string",
6 "clientId": "string",
7 "clientSecret": "string",
8 "discoveryUrl": "string",
9 "authorizationEndpoint": "string",
10 "tokenEndpoint": "string",
11 "userinfoEndpoint": "string",
12 "scopes": ["string"],
13 "userIdClaim": "string",
14 "displayNameClaim": "string",
15 "autoCreateUser": true,
16 "enabled": true,
17 "callbackUrl": "string",
18 "createdAt": "string"
19}
评价此篇文章
