A AuthMS API Wiki API Reference iam.tianv.com →

GET /admin/oauth/providers

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

OAuth `bearerAuth` application/json

Responses

StatusDescriptionSchema
200提供商列表dto.OAuthProviderListDetailResponse
401未认证:请提供有效的 Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足:需要管理员权限gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.OAuthProviderItem

FieldTypeRequiredExampleConstraintsDescription
auth_url string No https://github.com/login/oauth/authorize
client_id string No client-id
created_at string No 2026-04-15T10:30:00Z
display_name string No GitHub
enabled boolean No True
id string No prov_abc123
name string No github
redirect_url string No https://app.example.com/callback
scopes string No ["read:user","user:email"]
tenant_id string No tenant_abc123
token_url string No https://github.com/login/oauth/access_token
updated_at string No 2026-04-15T10:30:00Z
user_info_url string No https://api.github.com/user

dto.OAuthProviderListData

FieldTypeRequiredExampleConstraintsDescription
providers array of

See dto.OAuthProviderItem

No

dto.OAuthProviderListDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.OAuthProviderListData No
message string No
timestamp string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No