Skip to main content

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.

FieldTypeRequiredDescription
user_idstring (uuid)YesUnique user identifier.
tenant_idstring (uuid)YesTenant the user belongs to.
emailstring (email)YesUser's email address.
display_namestringNoUser's display name.
platform_rolestringNoPlatform-level role.

user.login

Emitted on successful authentication.

FieldTypeRequiredDescription
user_idstring (uuid)YesAuthenticated user.
tenant_idstring (uuid)NoTenant context.
ipstringNoClient IP address.

token.refreshed

Emitted when a token is refreshed.

FieldTypeRequiredDescription
user_idstring (uuid)YesUser whose token was refreshed.
tenant_idstring (uuid)NoTenant 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" }
}
}
}
}