Esempio n. 1
0
    def connectionMade(self):
        WampWebSocketClientProtocol.connectionMade(self)
        self._pid = self.transport.pid
        self.factory.proto = self

        # native workers are implicitly trusted
        self._authid = u'dummy'
        self._authrole = u'trusted'
        self._authmethod = u'trusted'

        # FIXME
        self._transport_info = None
Esempio n. 2
0
    def connectionMade(self):
        WampWebSocketClientProtocol.connectionMade(self)
        self._pid = self.transport.pid
        self.factory.proto = self

        # native workers are implicitly trusted
        self._authid = u'dummy'
        self._authrole = u'trusted'
        self._authmethod = u'trusted'

        # FIXME
        self._transport_info = None
Esempio n. 3
0
    def connectionMade(self):
        WampWebSocketClientProtocol.connectionMade(self)
        self._pid = self.transport.pid
        self.factory.proto = self

        # native workers are implicitly trusted
        self._authid = 'crossbar.process.{}'.format(self._pid)
        self._authrole = self.factory._authrole

        # the worker is actively spawned by the node controller,
        # and we talk over the pipes that were create during
        # process creation. this established implicit trust.
        self._authmethod = 'trusted'

        # the trust is established implicitly by the way the
        # the client (worker) is created
        self._authprovider = 'programcode'
Esempio n. 4
0
    def connectionMade(self):
        WampWebSocketClientProtocol.connectionMade(self)
        self._pid = self.transport.pid
        self.factory.proto = self

        # native workers are implicitly trusted
        self._authid = u'crossbar.process.{}'.format(self._pid)
        self._authrole = self.factory._authrole

        # the worker is actively spawned by the node controller,
        # and we talk over the pipes that were create during
        # process creation. this established implicit trust.
        self._authmethod = u'trusted'

        # the trust is established implicitly by the way the
        # the client (worker) is created
        self._authprovider = u'programcode'

        # FIXME / CHECKME
        self._cbtid = None
        self._transport_info = None
Esempio n. 5
0
 def connectionMade(self):
     WampWebSocketClientProtocol.connectionMade(self)
     self._pid = self.transport.pid
     self.factory.proto = self
Esempio n. 6
0
 def connectionMade(self):
     WampWebSocketClientProtocol.connectionMade(self)
     self._pid = self.transport.pid
     self.factory.proto = self