GET /oauth/connections/{user_id}

返回指定用户的所有第三方 OAuth 连接。需 JWT 认证,路径中的 user_id 必须与 JWT subject 一致。

OAuth `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
user_id path string 是 用户 ID

响应

引用的 Schema

dto.DataResponse-service-oauth/internal/handler/dto/OAuthConnectionListData

字段类型必填示例约束描述
code integer 否
data service-oauth/internal/handler/dto.OAuthConnectionListData 否
message string 否
timestamp string 否

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-oauth/internal/handler/dto.OAuthConnectionItem

字段类型必填示例约束描述
created_at string 否 2026-04-15T10:30:00Z
id string 否 conn_abc123
profile_data object 否
provider_id string 否 github
provider_user_id string 否 12345678
tenant_id string 否 tenant_abc123
token_expiry string 否 2026-04-15T10:30:00Z
updated_at string 否 2026-04-15T10:30:00Z
user_id string 否 usr_abc123

service-oauth/internal/handler/dto.OAuthConnectionListData

字段类型必填示例约束描述
connections array of

参见 service-oauth/internal/handler/dto.OAuthConnectionItem

否