GET /oauth/providers
返回当前租户下所有已启用的 OAuth 提供商列表
OAuth None application/json
引用的 Schema
dto.DataResponse-service-oauth/internal/handler/dto/OAuthProviderListData
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-oauth/internal/handler/dto.OAuthProviderItem
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
auth_url |
string |
否 |
https://github.com/login/oauth/authorize |
|
|
client_id |
string |
否 |
client-id |
|
|
created_at |
string |
否 |
2026-04-15T10:30:00Z |
|
|
display_name |
string |
否 |
GitHub |
|
|
enabled |
boolean |
否 |
True |
|
|
id |
string |
否 |
prov_abc123 |
|
|
name |
string |
否 |
github |
|
|
redirect_url |
string |
否 |
https://app.example.com/callback |
|
|
scopes |
array of
string |
否 |
['["read:user"', '"user:email"]'] |
|
|
tenant_id |
string |
否 |
tenant_abc123 |
|
|
token_url |
string |
否 |
https://github.com/login/oauth/access_token |
|
|
updated_at |
string |
否 |
2026-04-15T10:30:00Z |
|
|
user_info_url |
string |
否 |
https://api.github.com/user |
|
|
service-oauth/internal/handler/dto.OAuthProviderListData