def onSessionOpen(self): self.clientAuthTimeout = 0 self.clientAuthAllowAnonymous = False WampCraServerProtocol.onSessionOpen(self) self.registerMethodForRpc("http://api.wamp.ws/procedure#auth", self, NotificationsProtocol.auth)
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)
def onSessionOpen(self): ## override global client auth options self.clientAuthTimeout = 0 self.clientAuthAllowAnonymous = True ## call base class method WampCraServerProtocol.onSessionOpen(self)
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()
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)
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)
def onSessionOpen(self): # CRA authentication options self.clientAuthTimeout = 0 self.clientAuthAllowAnonymous = OPENDOOR # CRA authentication init WampCraServerProtocol.onSessionOpen(self)
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 )