Cookie Store¶
Cookie¶
- class cfxdb.cookiestore.CookieStoreSchema(db)[source]¶
Persistent cookie store.
- idx_cookies_by_value: IndexCookiesByValue¶
Index of cookies by cookie value.
- static attach(db: Database) → CookieStoreSchema[source]¶
Factory to create a schema from attaching to a database. The schema tables will be automatically mapped as persistent maps and attached to the database slots.
- class cfxdb.cookiestore.Cookie(from_fbs=None)[source]¶
Persistent cookies, as used in WAMP-Cookie authentication by router and proxy workers.
- property created: datetime64¶
Timestamp when the cookie was created. Epoch time in ns.
- property max_age: int¶
- Cookie maximum age (lifetime of the cookie in seconds, see http://tools.ietf.org/html/rfc6265#page-20),
e.g.
604800"
.
- property authenticated: datetime64¶
Timestamp when the cookie was authenticated (if any). Epoch time in ns.
- property authenticated_on_node: UUID¶
The Crossbar.io node (within the management domain) the cookie was authenticated on (if any).
- property authenticated_on_worker: str¶
The Crossbar.io worker (within the node) the cookie was authenticated on (if any).
- property authenticated_transport_info: dict¶
The client transport information for the connection the cookie was authenticated in (if any).
- property authenticated_joined_at: datetime64¶
Timestamp when the original authenticating session was welcome by the router. Epoch time in ns.
- class cfxdb.cookiestore.Cookies(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapUuidFlatBuffers
Persisted cookies table.
Map
zlmdb.MapUuidFlatBuffers
fromcookie_oid
tocfxdb.cookiestore.Cookie
- class cfxdb.cookiestore.IndexCookiesByValue(slot=None, compress=None)[source]¶
Bases:
MapStringUuid
Index: cookie_value -> cookie_oid