public function getUser()
    {
        if (! $this->getState()) {
            $oauth_verifier = $this->request->get('oauth_verifier');
            if ($oauth_verifier !== null) {
                $this->setState(App::STATE_AUTHORIZED);

                $secret = $this->storage->getRequestSecret();
                $oauth_token = $this->request->get('oauth_token');
                $credentials = $this->ttools->getAccessTokens($oauth_token, $secret, $oauth_verifier);

                if (!empty($credentials['access_token'])) {
                    if (!$this->strip_credentials) {
                        $credentials = array_merge($credentials, $this->getCredentials());
                    }

                    $this->storage->storeLoggedUser($credentials);
                    $this->setState(App::STATE_LOGGED);
                }
            }
        }

        return $this->getLoggedUser();
    }