crossbar.router.auth.wampcra¶
Classes¶
Pending WAMP-CRA authentication. |
Module Contents¶
- class PendingAuthWampCra(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.PendingAuthPending WAMP-CRA authentication.
- 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.
- 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.