'afterIdentify', 'Auth.logout' => 'logout' ]; } public function authenticate(Request $request, Response $response) { return ['id' => 1, 'username' => 'admad']; } public function afterIdentify(Event $event, array $user) { $this->callStack[] = __FUNCTION__; $this->authenticationProvider = $event->data[1]; if (!empty($this->modifiedUser)) { return $user + ['extra' => 'foo']; } } public function logout(Event $event, array $user) { $this->callStack[] = __FUNCTION__; } }