Identity & Auth
1. Node Identity
const orderNode = createNode('order-service');2. Origin Context
{
type: "order-created",
payload: {
// Domain-specific data
orderId: "order-123",
items: [/* items data */]
},
context: {
causal: {
id: "evt-789",
sender: "checkout-node",
causationId: "evt-456",
correlationId: "txn-123"
},
origin: {
nodeId: "checkout-node", // The immediate sender node (added automatically)
sourceId: "user-456", // Original source (optional, application-provided)
sourceType: "user" // Type of source (optional)
}
}
}3. Acceptance Controls
How Happen Enables Identity Models
Build Custom Identity Models
Create Domain-Specific Authorization
Implement Delegation Patterns
Embracing Causality
The Power of Minimalism
Last updated