public function get_logout_link($returnTo = null, $client_id = null, $federated = false)
    {
        $params = [];

        if ($returnTo !== null) {
            $params['returnTo'] = $returnTo;
        }

        if ($client_id !== null) {
            $params['client_id'] = $client_id;
        }

        if ($federated) {
            $params['federated'] = '';
        }

        return sprintf(
            'https://%s/v2/logout?%s',
            $this->domain,
            Psr7\build_query($params)
        );
    }
public function get_logout_link($returnTo = null, $client_id = null, $federated = false)
    {
        $params = [];

        if ($returnTo !== null) {
            $params['returnTo'] = $returnTo;
        }

        if ($client_id !== null) {
            $params['client_id'] = $client_id;
        }

        if ($federated) {
            $params['federated'] = '';
        }

        return sprintf(
            'https://%s/v2/logout?%s',
            $this->domain,
            Psr7\build_query($params)
        );
    }
public function get_logout_link ( $ returnTo = null , $ client_id = null , $ federated = false ) { $ params = [ ] ; if ( $ returnTo !== null ) { $ params [ 'returnTo' ] = $ returnTo ; } if ( $ client_id !== null ) { $ params [ 'client_id' ] = $ client_id ; } if ( $ federated ) { $ params [ 'federated' ] = '' ; } return sprintf ( 'https://%s/v2/logout?%s' , $ this -> domain , Psr7 \ build_query ( $ params ) ) ; }
Builds and returns a logout URL to terminate an SSO session.

@param null|string $returnTo  URL to return to after logging in; must be white-listed in Auth0.
@param null|string $client_id Client ID to use Application-specific returnTo URLs.
@param boolean     $federated Attempt a federated logout.

@return string

@link https://auth0.com/docs/api/authentication#logout
Builds and returns a logout URL to terminate an SSO session .