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

GET /admin/identity-providers

分页查询身份提供商列表,支持按类型和状态过滤

身份提供商 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
type query string No 提供商类型过滤
status query string No 状态过滤: active/inactive
page query integer No 1 页码
page_size query integer No 20 每页条数

Responses

StatusDescriptionSchema
200OKdto.IDPListResponse
401Unauthorizeddto.SimpleResponseWrapper
500Internal Server Errordto.SimpleResponseWrapper

Referenced Schemas

dto.IDPListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.IDPResponse

No 统一使用 items
message string No
pagination object No 分页信息(嵌套对象)
timestamp string No
total integer No 总条数(平铺,便于直接读取)

dto.IDPResponse

身份提供商详细信息

FieldTypeRequiredExampleConstraintsDescription
attribute_mapping object No extra keys: `string` 字段映射
auth_url string No https://example.com/auth 授权端点
client_id string No client_123 Client ID
config object No 额外配置
created_at string No 2026-01-01T00:00:00Z 创建时间
display_name string No My OIDC Provider 前端展示名称
icon_url string No https://example.com/icon.png 图标URL
id string No idp_abc123 提供商ID
is_popular boolean No False 常用提供商
is_system boolean No False 系统内置
name string No My OIDC Provider 显示名称
scopes array of

string

No ['[openid', 'profile', 'email]'] 权限范围
sort_order integer No 0 排序
status string No active 状态
tenant_id string No tnt_xyz789 租户ID
token_url string No https://example.com/token Token端点
type string No custom 类型
type_display_name string No 自定义 类型显示名称
updated_at string No 2026-04-10T14:20:00Z 更新时间
user_info_url string No https://example.com/userinfo 用户信息端点

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

gitee_com_linmes_authms_base_dto.PageInfo

FieldTypeRequiredExampleConstraintsDescription
has_next boolean No HasNext indicates whether there is a next page
has_prev boolean No HasPrev indicates whether there is a previous page
page integer No Page is the current page number (1-based)
page_size integer No PageSize is the number of items per page
total integer No Total is the total number of items across all pages
total_pages integer No TotalPages is the total number of pages