public function onClientCommandCreate(\Guzzle\Common\Event $event)
    {
        $command = $event['command'];
        if(get_class($command) != 'Guzzle\Openstack\Identity\Command\Authenticate'){
            if($event['client']->getToken() == null){
                throw new OpenstackException('Unauthenticated');
            }
        }
    }
public function onClientCommandCreate(\Guzzle\Common\Event $event)
    {
        $command = $event['command'];
        if(get_class($command) != 'Guzzle\Openstack\Identity\Command\Authenticate'){
            if($event['client']->getToken() == null){
                throw new OpenstackException('Unauthenticated');
            }
        }
    }
public function onClientCommandCreate ( \ Guzzle \ Common \ Event $ event ) { $ command = $ event [ 'command' ] ; if ( get_class ( $ command ) != 'Guzzle\Openstack\Identity\Command\Authenticate' ) { if ( $ event [ 'client' ] -> getToken ( ) == null ) { throw new OpenstackException ( 'Unauthenticated' ) ; } } }
Check the client authentication token for all commands except authentication

@param Event $event
Check the client authentication token for all commands except authentication