GET /oauth/consents

获取当前用户在当前租户下授权过的 OAuth 应用(consent)列表,含客户端 ID、名称、Logo、官网、授权范围及授权时间。 门户自身登录客户端(metadata.kind=portal,如各租户的默认客户端)不计入本列表;客户端已删除时名称等字段为空。

OAuth `bearerAuth` application/json

响应

状态描述Schema
200授权同意列表service-oauth/internal/handler/dto.ConsentListResponse
401未认证:请提供有效的 Bearer Tokenservice-core/base/dto.SimpleResponse
500服务内部错误service-core/base/dto.SimpleResponse

引用的 Schema

service-core/base/dto.SimpleResponse

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

service-oauth/internal/handler/dto.ConsentListResponse

字段类型必填示例约束描述
code integer 否
data array of

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

否
message string 否
timestamp string 否

service-oauth/internal/handler/dto.ConsentResponse

字段类型必填示例约束描述
alias string 否 小说 Alias 显示简称(metadata.alias):优先于 ClientName 展示,空则由前端回退。
client_id string 否 app-123
client_name string 否 My App
granted_at string 否 2026-04-15T10:30:00Z
id string 否 01ARZ3NDEKTSV4RRFFQ69G5FAV
logo_uri string 否 https://app.example.com/logo.png
scopes string 否 openid profile email
website string 否 https://app.example.com