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

GET /auth/me/tenants

返回当前用户有权限访问的所有租户列表,包含租户ID、名称、显示名称和用户在各租户的角色。支持通过租户服务获取租户显示名称。

身份认证 `bearerAuth` application/json

Responses

StatusDescriptionSchema
200当前用户的租户列表及角色dto.MyTenantsResponseWrapper
401未认证或令牌无效gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.MyTenantsResponse

FieldTypeRequiredExampleConstraintsDescription
tenants array of

See dto.TenantInfo

No

dto.MyTenantsResponseWrapper

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

dto.TenantInfo

FieldTypeRequiredExampleConstraintsDescription
id string No
name string No
role string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No