protected function getLoginUrl(string $redirect_url = '') {
        if (empty($redirect_url)) {
            $redirect_url = $this->getClientUrl();
        }
        return $this->getServerUrl() . self::LOGIN_PATH . '?redirect_url=' . $redirect_url;
    }