class MemorySessionStore: (source)
Implements interfaces: klein.interfaces.ISessionStore
Undocumented
Class Method | from |
Create a MemorySessionStore from a collection of callbacks which can do authorization. |
Method | load |
Load a session given the given identifier and security properties. |
Method | new |
Create a new ISession . |
Method | sent |
The transport layer has detected that the given identifiers have been sent over an unauthenticated transport. |
Method | _storage |
Return the storage appropriate to the isConfidential flag. |
Instance Variable | _insecure |
Undocumented |
Instance Variable | _secure |
Undocumented |
Create a MemorySessionStore
from a collection of callbacks which can do authorization.
Parameters | |
authorizers:Iterable[ | Undocumented |
Returns | |
MemorySessionStore | Undocumented |
Load a session given the given identifier and security properties.
As an optimization for session stores where the back-end can generate session identifiers when the presented one is not found in the same round-trip to a data store, this method may return a Session
object with an identifier attribute that does not match identifier. However, please keep in mind when implementing ISessionStore
that this behavior is only necessary for requests where authenticatedBy is SessionMechanism.Cookie
; an unauthenticated SessionMechanism.Header
session is from an API client and its session should be valid already.
Parameters | |
identifier:str | Undocumented |
isbool | Undocumented |
authenticatedSessionMechanism | Undocumented |
Returns | |
Deferred firing with ISession or failing with NoSuchSession . | an existing session with the given identifier. |
The transport layer has detected that the given identifiers have been sent over an unauthenticated transport.
Parameters | |
tokens:Iterable[ | Undocumented |