protected function getCallbackUrl(Request $request)
    {
        $selfUrl = $this->getSelfUrl($request);
        if (substr($selfUrl, -9) == "-callback") {
            return $selfUrl;
        } else {
            return $selfUrl . "-callback";
        }
    }