crossbar.edge.worker.auth

Attributes

Classes

AuthenticatorSession

WAMP application session for Twisted-based applications.

Functions

create_rlink_authenticator(config, controller)

Create an authenticator function for the listening transport of router workers

Module Contents

class AuthenticatorSession(config: autobahn.wamp.types.ComponentConfig | None = None)[source]

Bases: autobahn.twisted.wamp.ApplicationSession

WAMP application session for Twisted-based applications.

Implements:

onJoin(details)[source]

Implements autobahn.wamp.interfaces.ISession.onJoin()

PRINCIPALS[source]

Create an authenticator function for the listening transport of router workers in a worker group of a router cluster to authenticate rlink connections incoming from other workers in this worker group.

The actual authentication method will be called like:

authenticate(realm, authid, session_details)

Note that this function can itself do async work (as can the “authenticate” method). For example, we could connect to a database here (and then use that connection in the authenticate() method)

‘controller’ will be None unless “expose_controller”: true is in the config.

log[source]