GET /admin/oauth/providers

获取当前租户下所有OAuth提供商的列表,包括名称、ID、启用状态等信息。仅管理员可访问。

OAuth `bearerAuth` application/json

响应

状态描述Schema
200提供商列表service-oauth/internal/handler/dto.OAuthProviderListDetailResponse
401未认证:请提供有效的 Bearer Tokenservice-core/base/dto.SimpleResponse
403权限不足:需要管理员权限service-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.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

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

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

否

service-oauth/internal/handler/dto.OAuthProviderListDetailResponse

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