GET /oauth/consents
获取当前用户在当前租户下授权过的 OAuth 应用(consent)列表,含客户端 ID、名称、Logo、官网、授权范围及授权时间。
门户自身登录客户端(metadata.kind=portal,如各租户的默认客户端)不计入本列表;客户端已删除时名称等字段为空。
OAuth `bearerAuth` application/json
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-oauth/internal/handler/dto.ConsentListResponse
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 |
|
|