Auth Events
Authentication lifecycle events published to the auth-events Kafka topic.
Source: Auth Service
Events
user.registered
Emitted when a new user registers on the platform.
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string (uuid) | Yes | Unique user identifier. |
tenant_id | string (uuid) | Yes | Tenant the user belongs to. |
email | string (email) | Yes | User's email address. |
display_name | string | No | User's display name. |
platform_role | string | No | Platform-level role. |
user.login
Emitted on successful authentication.
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string (uuid) | Yes | Authenticated user. |
tenant_id | string (uuid) | No | Tenant context. |
ip | string | No | Client IP address. |
token.refreshed
Emitted when a token is refreshed.
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string (uuid) | Yes | User whose token was refreshed. |
tenant_id | string (uuid) | No | Tenant context. |
Raw Schema
{
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "Auth Events",
"description": "Authentication lifecycle events.",
"definitions": {
"user.registered": {
"type": "object",
"required": ["user_id", "tenant_id", "email"],
"properties": {
"user_id": { "type": "string", "format": "uuid" },
"tenant_id": { "type": "string", "format": "uuid" },
"email": { "type": "string", "format": "email" },
"display_name": { "type": "string" },
"platform_role": { "type": "string" }
}
},
"user.login": {
"type": "object",
"required": ["user_id"],
"properties": {
"user_id": { "type": "string", "format": "uuid" },
"tenant_id": { "type": "string", "format": "uuid" },
"ip": { "type": "string" }
}
},
"token.refreshed": {
"type": "object",
"required": ["user_id"],
"properties": {
"user_id": { "type": "string", "format": "uuid" },
"tenant_id": { "type": "string", "format": "uuid" }
}
}
}
}