예제 #1
0
 def onSessionOpen(self):
     self.clientAuthTimeout = 0
     self.clientAuthAllowAnonymous = False
     WampCraServerProtocol.onSessionOpen(self)
     self.registerMethodForRpc("http://api.wamp.ws/procedure#auth",
                               self,
                               NotificationsProtocol.auth)
예제 #2
0
   def onSessionOpen(self):

      self.includeTraceback = True
      self.setWiretapMode(False)
      self.sessionInfo = SessionInfo(self.session_id)

      self._cbSession['wampSessionId'] = self.session_id

      self.dbpool = self.factory.dbpool
      self.authenticatedAs = None

      if self.RPC_PING:
         self.registerForRpc(self, URI_WAMP_RPC, [HubWebSocketProtocol.ping])

      if self.RPC_ECHO:
         self.registerForRpc(self, URI_WAMP_RPC, [HubWebSocketProtocol.echo])

      if self.TESTEE_API:
         ##
         ## FIXME:
         ##   - let the user enable/disable the built-in testsuite API
         ##   - let this method be overidden, e.g. when testing Oracle integration (probably based on appkey?)
         ##
         TESTEE_CONTROL_DISPATCH = "http://api.testsuite.wamp.ws/autobahn/testee/control#dispatch"
         #TESTEE_CONTROL_DISPATCH = "http://api.testsuite.wamp.ws/testee/control#dispatch"

         self.registerMethodForRpc(TESTEE_CONTROL_DISPATCH, self, HubWebSocketProtocol.testDispatch)

      ## global client auth options
      ##
      self.clientAuthTimeout = self.factory.services["config"].get("client-auth-timeout", 0)
      self.clientAuthAllowAnonymous = self.factory.services["config"].get("client-auth-allow-anonymous", False)

      WampCraServerProtocol.onSessionOpen(self)
예제 #3
0
    def onSessionOpen(self):

        ## override global client auth options
        self.clientAuthTimeout = 0
        self.clientAuthAllowAnonymous = True

        ## call base class method
        WampCraServerProtocol.onSessionOpen(self)
예제 #4
0
   def onSessionOpen(self):

      ## override global client auth options
      self.clientAuthTimeout = 0
      self.clientAuthAllowAnonymous = True

      ## call base class method
      WampCraServerProtocol.onSessionOpen(self)
예제 #5
0
   def onSessionOpen(self):

      if self.factory.config.secure:
         ## require WAMP-CRA authentication

         self.clientAuthTimeout = 0
         self.clientAuthAllowAnonymous = True
         WampCraServerProtocol.onSessionOpen(self)

      else:
         WampServerProtocol.onSessionOpen(self)
         self.onReady()
예제 #6
0
   def onSessionOpen(self):

      if self.factory.config.secure:
         ## require WAMP-CRA authentication

         self.clientAuthTimeout = 0
         self.clientAuthAllowAnonymous = True
         WampCraServerProtocol.onSessionOpen(self)

      else:
         WampServerProtocol.onSessionOpen(self)
         self.onReady()
예제 #7
0
   def onSessionOpen(self):
      """
      Entry point when admin UI is connected.
      """
      self.dbpool = self.factory.dbpool

      self.registerForRpc(self, URI_API, [AdminWebSocketProtocol.isActivated,
                                          AdminWebSocketProtocol.createActivationRequest,
                                          AdminWebSocketProtocol.getPasswordSet,
                                          AdminWebSocketProtocol.setPassword])

      self.serviceConfig = ServiceConfig(self)

      ## override global client auth options
      self.clientAuthTimeout = 120
      self.clientAuthAllowAnonymous = False

      self.authUser = None

      ## call base class method
      WampCraServerProtocol.onSessionOpen(self)
예제 #8
0
    def onSessionOpen(self):
        """
      Entry point when admin UI is connected.
      """
        self.dbpool = self.factory.dbpool

        self.registerForRpc(self, URI_API, [
            AdminWebSocketProtocol.isActivated,
            AdminWebSocketProtocol.createActivationRequest,
            AdminWebSocketProtocol.getPasswordSet,
            AdminWebSocketProtocol.setPassword
        ])

        self.serviceConfig = ServiceConfig(self)

        ## override global client auth options
        self.clientAuthTimeout = 120
        self.clientAuthAllowAnonymous = False

        self.authUser = None

        ## call base class method
        WampCraServerProtocol.onSessionOpen(self)
예제 #9
0
 def onSessionOpen(self):
     # CRA authentication options
     self.clientAuthTimeout = 0
     self.clientAuthAllowAnonymous = OPENDOOR
     # CRA authentication init
     WampCraServerProtocol.onSessionOpen(self)
예제 #10
0
 def onSessionOpen(self):
     # CRA authentication options
     self.clientAuthTimeout = 0
     self.clientAuthAllowAnonymous = OPENDOOR
     # CRA authentication init
     WampCraServerProtocol.onSessionOpen(self)
예제 #11
0
파일: webapp.py 프로젝트: dkolbly/flowman
 def onSessionOpen( self ):
     self.clientAuthTimeout = 0
     self.clientAuthAllowAnonymous = True
     self.registerForPubSub( "http://rscheme.org/workflow#", prefixMatch=True )
     self.registerForRpc( self, "http://rscheme.org/workflow#" )
     WampCraServerProtocol.onSessionOpen( self )