Internal messages¶
There are some messages that are published by Auth through Kafka. These messages are related to tenancy lifecycle events.
Event | Subject | Service | Message type |
---|---|---|---|
Tenant creation | dojot.tenancy | internal | Tenant creation |
Tenant removal | dojot.tenancy | internal | Tenant removal |
Tenant creation¶
This message is published whenever a new tenant is created. Its payload is a simple JSON:
{
"type": "CREATE",
"tenant": "admin"
}
And its attributes are:
- type (string): “CREATE”
- tenant: New tenant
Tenant removal¶
This message is published whenever a new tenant is removed. Its payload is a simple JSON:
{
"type": "DELETE",
"tenant": "admin"
}
And its attributes are:
- type (string): “DELETE”
- tenant: Tenant to be removed