Home | Trees | Indices | Help |
|
---|
|
object --+ | OpenIDStore
|
|||
NoneType
|
storeAssociation(self,
server_url,
association) This method puts a Association object into storage, retrievable
by server URL and handle.
|
||
Association or NoneType
|
getAssociation(self,
server_url,
handle=None) This method returns an Association object from storage that matches
the server URL and, if specified, handle.
|
||
bool or int
|
removeAssociation(self,
server_url,
handle) This method removes the matching association if it's found, and returns whether the association was removed or not. |
||
NoneType
|
storeNonce(self,
nonce) Stores a nonce. |
||
bool or int
|
useNonce(self,
nonce) This method is called when the library is attempting to use a nonce. |
||
str
|
getAuthKey(self) This method returns a key used to sign the tokens, to ensure that they haven't been tampered with in transit. |
||
bool
|
isDumb(self) This method must return True if the store is a
dumb-mode-style store.
|
||
Inherited from |
|
|||
AUTH_KEY_LEN = 20 The length of the auth key that should be returned by the getAuthKey method.
|
|
|||
Inherited from |
|
This method puts a Association object into storage, retrievable by
server URL and handle.
|
This method returns an If no handle is specified, the store may return any association which matches the server URL. If multiple associations are valid, the recommended return value for this method is the one that will remain valid for the longest duration. This method is allowed (and encouraged) to garbage collect expired associations when found. This method must not return expired associations.
|
This method removes the matching association if it's found, and returns whether the association was removed or not.
|
Stores a nonce. This is used by the consumer to prevent replay attacks.
|
This method is called when the library is attempting to use a nonce. If the nonce is in the store, this method removes it and returns a value which evaluates as true. Otherwise it returns a value which evaluates as false. This method is allowed and encouraged to treat nonces older than some period (a very conservative window would be 6 hours, for example) as no longer existing, and return False and remove them.
|
This method returns a key used to sign the tokens, to ensure that they haven't been tampered with in transit. It should return the same key every time it is called. The key returned should be AUTH_KEY_LEN bytes long.
|
This method must return OpenIDStore won't override this method, as custom
subclasses are only likely to be created when the store is fully
functional.
|
|
AUTH_KEY_LENThe length of the auth key that should be returned by the getAuthKey method.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 8 13:26:20 2006 | http://epydoc.sourceforge.net |