Logouts User from resource Owner.

@param $redirectUrl

@return RedirectResponse
962634
public function logout($redirectUrl)
    {
        if (!empty($this->options['revoke_token_url']) && $this->options['force_login'] === true) {
            $redirectUrl = $this->normalizeUrl(
                $this->options['revoke_token_url'],
                ['post_logout_redirect_uri' => $redirectUrl]
            );
        }

        return new RedirectResponse($redirectUrl);
    }
1047672
public static function logoutWithUrl($url)
    {
        trigger_error('Function deprecated for cas servers >= 3.3.5.1', E_USER_DEPRECATED);
        phpCAS :: traceBegin();
        if (!is_object(self::$_PHPCAS_CLIENT)) {
            phpCAS :: error('this method should only be called after ' . __CLASS__ . '::client() or' . __CLASS__ . '::proxy()');
        }
        if (!is_string($url)) {
            phpCAS :: error('type mismatched for parameter $url (should be `string\')');
        }
        self::$_PHPCAS_CLIENT->logout(array ( "url" => $url ));
        // never reached
        phpCAS :: traceEnd();
    }
292665
public function redirect($url)
    {
        $location = $this->_request->getBasePath();
        $location = str_replace('//', '/', "{$location}/{$url}");
        $this->_response->setStatusCode(302);
        $header = new GenericHeader('Location', $location);
        $this->_response->getHeaders()->addHeader($header);
        return $this->disableRendering();
    }
497685
public function setRedirectUrl($redirectUrl = '')
    {
        $this->redirectUrl = $redirectUrl;
        $this->debug->debug(__FUNCTION__, 'setRedirectUrl: ' . json_encode($this->redirectUrl));

        return $this;
    }
820973
private function RedirectUrl()
    {
        if ($this->logout->GetNextUrl())
        {
            return FrontendRouter::Url($this->logout->GetNextUrl());
        }
        return CurrentUrl();
    }
42185
public function logout()
    {
        $controller = $this->getController();
        $result = $this->getAuthenticationService()->clearIdentity(
            $controller->request,
            $controller->response
        );

        $controller->request = $result['request'];
        $controller->response = $result['response'];

        $this->dispatchEvent('Authentication.logout', [], $controller);

        $logoutRedirect = $this->getConfig('logoutRedirect');
        if ($logoutRedirect === false) {
            return null;
        }

        return Router::normalize($logoutRedirect);
    }
284628
private function buildRedirect( $redirectUrl, $redirectCode )
	{
		if ( is_null( $redirectCode ) )
		{
			return new Redirect( $redirectUrl );
		}
		else
		{
			return new Redirect( $redirectUrl, $redirectCode );
		}
	}
617765
public function logout($options = []) {
		$options = Hash::merge($this->getConfig('logout'), $options);
		$Auth = $this->_getAuthObject();
		$user = $Auth->user();

		if (empty($user)) {
			return $this->getController()->redirect($this->getController()->referer());
		}

		$logoutRedirect = $Auth->logout();
		if (is_null($options['successRedirectUrl'])) {
			$options['successRedirectUrl'] = $logoutRedirect;
		}

		return $this->handleFlashAndRedirect('success', $options);
	}
869145
public function auth(string $userToken = null, string $redirect = '')
    {
        return rudra()->get('auth')->access($userToken, $redirect);
    }
1270584
public function getLogoutUrl(Request $request, $return = null)
    {
        $logout_redirect = $this->getAttribute($request, 'logoutURL');

        if (!empty($logout_redirect)) {
            return $this->getHandlerUrl($request) . '/Logout?return='. urlencode($logout_redirect
                    . (empty($return)? '' : '?return='.$return));
        } elseif (!empty($return)) {
            return $this->getHandlerUrl($request) . '/Logout?return='.urlencode($return);
        } else {
            return $this->getHandlerUrl($request) . '/Logout';
        }
    }
558635
public function withRedirect($url, $status = null)
        {
            $response = $this->withHeader('Location', (string)$url);
            if (is_null($status) && $this->getStatusCode() === 200) {
                $status = 302;
            }
            if (!is_null($status)) {
                return $response->withStatus($status);
            }
            return $response;
        }
1102046
protected function redirect($url, $statusCode = 302)
    {
        $response = new RedirectResponse($url, $statusCode);
        $this->getServiceLocator()->set('Response', $response);

        return $response;
    }
156498
public function authenticationStart($redirectUrl)
    {
        $url = $this->config->getEndpoint();
        $url .= '/oauth2/authorize';
        $url .= '?client_id=' . $this->config->getClientId();
        $url .= '&redirect_uri=' . urlencode($redirectUrl);
        $url .= '&response_type=code';

        return $url;
    }
740560
protected function expireAuthentication(Url $url)
    {
        $session = $this->session;
        $session->remove('_security_' . $url->getOption('firewall'));
        $session->save();

        $this
            ->client
            ->getCookieJar()
            ->expire($session->getName());

        return $this;
    }
1179325
public function redirect()
    {
        if (!$this->isStateless()) {
            $this->request->getSession()->put(
                'oauth.temp', $temp = $this->server->getTemporaryCredentials()
            );
        } else {
            $temp = $this->server->getTemporaryCredentials();
            $this->request->session()->put('oauth_temp', serialize($temp));
        }

        return new RedirectResponse($this->server->getAuthorizationUrl($temp));
    }
880576
public function quit($redirection = null)
    {
        if (!$this->response->getAjax()) {
            if ($redirection) {
                $this->redirection($redirection);
            }
            $this->shareMessages();
            if (!GL_TESTING) {
                Bootstrap::dispatch($this->response);
                exit;
            }
        }
        return true;
    }
820786
def get_logout_url(self, redirect_url=None):
        """"""
        url = urllib_parse.urljoin(self.server_url, 'logout')
        if redirect_url:
            params = {self.logout_redirect_param_name: redirect_url}
            url += '?' + urllib_parse.urlencode(params)
        return url