POST /auth/ldap/login

Authenticate user against configured LDAP/AD directory

auth None application/json

请求体

Schema: service-identity/internal/handler/dto.LdapLoginRequest

字段类型必填示例约束描述
password string 是
username string 是
tenant_id string 否 显式指定租户(可选,兜底 X-Tenant-ID header)

响应

引用的 Schema

service-core/base/dto.DataResponse-service-identity/internal/handler/dto/LdapLoginResponse

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

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-identity/internal/handler/dto.LdapLoginResponse

字段类型必填示例约束描述
access_token string 否
is_new_user boolean 否
refresh_token string 否
user_id string 否