crossbar.router.auth.tls

Classes

PendingAuthTLS

Pending WAMP-TLS authentication.

Module Contents

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

Bases: crossbar.router.auth.pending.PendingAuth

Pending WAMP-TLS authentication.

AUTHMETHOD = 'tls'[source]
_cert_sha1_to_principal = None[source]
_channel_id[source]
_peer_cert[source]
authenticate(signature)[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.

hello(realm, details)[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]