public function processLogout()
    {
        $this->getToken()->deleteUserToken();
        if ($this->getUser()->isAuthenticated()) {
            $this->getAuthProvider($this->user->getAuthProviderName())->logoutCallback();
        }
        $this->user = new AnonymousUser();
        $this->userAuthenticated = false;

        $this->eventManager()->fire(SecurityEvent::LOGOUT);

        return true;
    }