src/AuthorizesWithOAuth2.php
public function logout(ResponseInterface $response, $destination = '/')
    {
        // Make sure we're making request with the authorization_code grant.
        $this->asUser();

        $this->getFrameworkBridge()->logout();

        $destination = $this->getFrameworkBridge()->prepareUrl($destination);
        $ssoLogoutUrl = config('services.northstar.url').'/logout?redirect='.$destination;

        return $response->withStatus(302)->withHeader('Location', $ssoLogoutUrl);
    }
public function logout(ResponseInterface $response, $destination = '/')
    {
        // Make sure we're making request with the authorization_code grant.
        $this->asUser();

        $this->getFrameworkBridge()->logout();

        $destination = $this->getFrameworkBridge()->prepareUrl($destination);
        $ssoLogoutUrl = config('services.northstar.url').'/logout?redirect='.$destination;

        return $response->withStatus(302)->withHeader('Location', $ssoLogoutUrl);
    }
public function logout ( ResponseInterface $ response , $ destination = '/' ) { // Make sure we're making request with the authorization_code grant. $ this -> asUser ( ) ; $ this -> getFrameworkBridge ( ) -> logout ( ) ; $ destination = $ this -> getFrameworkBridge ( ) -> prepareUrl ( $ destination ) ; $ ssoLogoutUrl = config ( 'services.northstar.url' ) . '/logout?redirect=' . $ destination ; return $ response -> withStatus ( 302 ) -> withHeader ( 'Location' , $ ssoLogoutUrl ) ; }
Log a user out of the application and SSO service.

@param ResponseInterface $response
@param string $destination
@return ResponseInterface
Log a user out of the application and SSO service .