This is the interface for the store objects the OpenID library
uses. It is a single class that provides all of the persistence mechanisms that the OpenID library needs, for both servers and consumers. If you want to create an SQL-driven store, please see then Auth_OpenID_SQLStore class.
Change: Version 2.0 removed the storeNonce, getAuthKey, and isDumb methods, and changed the behavior of the useNonce method to support one-way nonces.
Located in /Auth/OpenID/Interface.php (line 30)
Class | Description |
---|---|
Auth_OpenID_DumbStore | This is a store for use in the worst case, when you have no way of saving state on the consumer site. Using this store makes the consumer vulnerable to replay attacks, as it's unable to use nonces. Avoid using this store if it is at all possible. |
Auth_OpenID_FileStore | This is a filesystem-based store for OpenID associations and |
Auth_OpenID_MDB2Store | This store uses a PEAR::MDB2 connection to store persistence information. |
Auth_OpenID_MemcachedStore | This is a memcached-based store for OpenID associations and nonces. |
Auth_OpenID_SQLStore | This is the parent class for the SQL stores, which contains the logic common to all of the SQL stores. |
Tests_Auth_OpenID_MemStore | This is the interface for the store objects the OpenID library |
This method returns an Association object from storage that matches the server URL and, if specified, handle. It returns null if no such association is found or if the matching association is expired.
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 most recently issued.
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.
Removes all entries from the store; implementation is optional.
This method puts an Association object into storage, retrievable by server URL and handle.
Report whether this storage supports cleanup
Called when using a nonce.
This method should return C{True} if the nonce has not been used before, and store it for a while to make sure nobody tries to use the same value again. If the nonce has already been used, return C{False}.
Change: In earlier versions, round-trip nonces were used and a nonce was only valid if it had been previously stored with storeNonce. Version 2.0 uses one-way nonces, requiring a different implementation here that does not depend on a storeNonce call. (storeNonce is no longer part of the interface.
Documentation generated on Thu, 29 Jul 2010 13:58:53 -0700 by phpDocumentor 1.4.3