OIDC Discovery
更新时间:2026-07-14
OIDC Discovery
- 标准 OpenID Provider Metadata 端点,返回用户池的 OIDC 配置。
OpenAPI Explorer
去调试
您可以在 OpenAPI Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1GET /v{version}/agent-identity/inbound/{userPoolId}/.well-known/openid-configuration HTTP/1.1
2Host: identity.bce.baidu.com
请求头域
无需认证,无特殊请求头域
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号 |
| userPoolId | String | 是 | URL参数 | 用户池 ID |
返回状态码
成功返回200,失败返回见错误码
返回头域
除公共头域外,无其他特殊头域
返回参数
OpenID Provider Metadata JSON 对象,含 issuer / authorization_endpoint / token_endpoint / userinfo_endpoint / jwks_uri / response_types_supported / grant_types_supported / subject_types_supported / id_token_signing_alg_values_supported / scopes_supported。
请求示例
Plain Text
1GET /v1/agent-identity/inbound/{userPoolId}/.well-known/openid-configuration HTTP/1.1
返回示例
Plain Text
1{
2 "issuer": "https://identity.bce.baidu.com/v1/agent-identity/inbound/01961a2b3c4d5e6f7890abcdef123456",
3 "authorization_endpoint": "https://identity.bce.baidu.com/v1/agent-identity/inbound/01961a2b3c4d5e6f7890abcdef123456/authorize",
4 "token_endpoint": "https://identity.bce.baidu.com/v1/agent-identity/inbound/01961a2b3c4d5e6f7890abcdef123456/token",
5 "userinfo_endpoint": "https://identity.bce.baidu.com/v1/agent-identity/inbound/01961a2b3c4d5e6f7890abcdef123456/userinfo",
6 "jwks_uri": "https://identity.bce.baidu.com/v1/agent-identity/inbound/01961a2b3c4d5e6f7890abcdef123456/.well-known/jwks.json",
7 "response_types_supported": ["code"],
8 "grant_types_supported": ["authorization_code", "refresh_token"],
9 "subject_types_supported": ["public"],
10 "id_token_signing_alg_values_supported": ["RS256"],
11 "scopes_supported": ["openid", "profile", "offline_access"]
12}
评价此篇文章
