外观
V1 账密登录(集成方代用户)
POST
/v1/auth/loginByPassword
要求先持有 client_credentials token;从 client 上下文取 tenantId;返回 user token 用于强通道 X-Atk-User-Token。
授权
apiKey
类型
API Key (header: Authorization)
请求体
application/json
JSON "username": "string", "password": "string"
{
}
响应
OK
*/*
JSON "code": 0, "data": { "accessToken": "string", "expiresIn": 0, "refreshToken": "string", "scopes": [ "string" ], "mode": "string", "userId": "string", "userName": "string", "tenantId": "string", "requirePasswordChange": true }, "ts": 0, "rid": "string", "msg": "string", "success": true
{
}