crossbar.router.auth.pending

Classes

PendingAuth

Base class for pending WAMP authentications.

Module Contents

class PendingAuth(pending_session_id: int, transport_details: autobahn.wamp.types.TransportDetails, realm_container: crossbar.interfaces.IRealmContainer, config: Dict[str, Any])[source]

Base class for pending WAMP authentications.

After creating a pending authentication first call open() and then verify() (each should be called exactly once, and in this order).

AUTHMETHOD = 'abstract'[source]
_accept()[source]
_assign_principal(principal)[source]
_authenticator: str | None = None[source]
_authenticator_realm: str | None = None[source]
_authenticator_session: autobahn.wamp.interfaces.ISession | None = None[source]
_authextra: Dict[str, Any] | None = None[source]
_authid: str | None = None[source]
_authmethod: str = 'abstract'[source]
_authprovider: str | None = None[source]
_authrole: str | None = None[source]
_config: Dict[str, Any][source]
_init_dynamic_authenticator()[source]
_init_function_authenticator()[source]
_marshal_dynamic_authenticator_error(err)[source]
_realm: str | None = None[source]
_realm_container: crossbar.interfaces.IRealmContainer[source]
_session_details[source]
abstractmethod authenticate(signature: str) autobahn.wamp.types.Accept | autobahn.wamp.types.Deny[source]

The client has answered with a WAMP AUTHENTICATE message. Verify the message and accept or deny.

Parameters:

signature – Signature over the challenge as received from the authenticating session.

Returns:

Either accept or deny the session.

abstractmethod hello(realm: str, details: autobahn.wamp.types.HelloDetails) autobahn.wamp.types.Accept | autobahn.wamp.types.Deny | autobahn.wamp.types.Challenge[source]

When a HELLO message is received, this gets called to open the pending authentication.

Parameters:
  • realm – The realm to client wishes to join (if the client did announce a realm).

  • details – The details of the client provided for HELLO.

Returns:

Either return a challenge, or immediately accept or deny session.

log[source]