发送更多
登录尝试
安装 one call where you check passwords
从校验密码的服务器上报每次登录尝试。Blipit 按操作者和地址分组,并在密集尝试超过你在“告警”下设定的阈值时生成安全问题。绝不发送密码。安装模块后,Odoo 会自动完成这一步。
粘贴到 Claude Code、Cursor 或任何 AI 编程助手中。它包含步骤和代码。在 app.blipit.io 的“API 密钥”页面,同一提示词已填好你的密钥。
1调用
POST https://in.blipit.io/api/v1/events
Content-Type: application/json
X-Blipit-Key: <secret key>
{
"event_id": "9f1c4b6d8e2a47f0b3c5d7e9a1b2c3d4",
"timestamp": "2026-09-28T09:15:00.000Z",
"platform": "other",
"level": "warning",
"environment": "production",
"message": "Failed login for admin",
"sdk": { "name": "myapp-auth", "version": "1.0.0" },
"security": {
"kind": "login_failed",
"actor": "admin",
"actor_id": "42",
"ip": "203.0.113.42",
"user_agent": "Mozilla/5.0",
"outcome": "bad_password"
}
}须知
- kind 为 login_failed、login_succeeded、login_blocked、password_reset_requested 或 privilege_granted。
- event_id 是每次尝试新生成的 32 位小写十六进制字符串;同一个发送两次只计一次。
- Python、PHP、Ruby、Go、Java 和 .NET SDK 通过 capture_security(captureSecurity 或 CaptureSecurity)发送相同的 security 对象;请用私密密钥初始化它们。浏览器和移动应用只持有公钥,因此请从服务器上报登录。
- 从 SDK 0.1.1 起(Node, Python, PHP, Ruby, Go, Java, .NET),使用公钥启动的 SDK 不会发送登录尝试,并只记录一次警告,说明需要密钥(secret key)。
遇到问题?发邮件至 support@blipit.io。每个项目的密钥和项目 id 在 app.blipit.io 的“API 密钥”下。