security

Since Kuzzle 1.0.0

Events triggered when a request is sent to the security controller.


security:after<Action>

Since Kuzzle 1.0.0

Event type: Pipe

Payload: a Request object

All actions in the security controller trigger this event after a successful execution. The <Action> part of the event name is replaced with the name of the action, where each word starts with a capital letter.

Example: after a successful getRole request, a security:afterGetRole event is triggered.


security:before<Action>

Since Kuzzle 1.0.0

Event type: Pipe

Payload: a Request object

All actions in the security controllers trigger this event before execution. The <Action> part of the event name is replaced with the name of the action, where each word starts with a capital letter.

Example: before performing a searchUsers request, a security:beforeSearchUsers event is triggered.


security:error<Action>

Since Kuzzle 1.0.0

Event type: Pipe

Payload: a Request object

All actions in the security controllers trigger this event after a failed execution. The <Action> part of the event name is replaced with the name of the action, where each word starts with a capital letter.

Example: after a failed createUser request, a security:errorCreateUser event is triggered.


security:formatUserForSerialization

Deprecated since Kuzzle 1.0.0

Event type: Pipe

Payload: a User object

Triggered before serializing a user object.