TYPO3 CMS
TYPO3_6-2
|
Public Member Functions | |
Auth_OpenID_PredisStore (\Predis\Client $redis, $prefix='') | |
storeAssociation ($server_url, $association) | |
getAssociation ($server_url, $handle=null) | |
removeAssociation ($server_url, $handle) | |
useNonce ($server_url, $timestamp, $salt) | |
associationKey ($server_url, $handle=null) | |
associationServerKey ($server_url) | |
supportsCleanup () | |
![]() | |
storeAssociation ($server_url, $association) | |
cleanupNonces () | |
cleanupAssociations () | |
cleanup () | |
supportsCleanup () | |
getAssociation ($server_url, $handle=null) | |
removeAssociation ($server_url, $handle) | |
useNonce ($server_url, $timestamp, $salt) | |
reset () | |
Protected Attributes | |
$redis | |
$prefix | |
Private Member Functions | |
getAssociationFromServer ($associationKey) | |
nonceKey ($server_url, $salt) | |
Definition at line 29 of file PredisStore.php.
Auth_OpenID_PredisStore::associationKey | ( | $server_url, | |
$handle = null |
|||
) |
Key is prefixed with $prefix and 'openid_association_' string
Definition at line 185 of file PredisStore.php.
Referenced by getAssociation(), removeAssociation(), and storeAssociation().
Auth_OpenID_PredisStore::associationServerKey | ( | $server_url | ) |
Key is prefixed with $prefix and 'openid_association_server_' string
Definition at line 195 of file PredisStore.php.
Referenced by getAssociation(), removeAssociation(), and storeAssociation().
Auth_OpenID_PredisStore::Auth_OpenID_PredisStore | ( | \Predis\Client | $redis, |
$prefix = '' |
|||
) |
Initializes a new Auth_OpenID_PredisStore instance.
\Predis\Client | $redis | Predis client object |
string | $prefix | Prefix for all keys stored to the Redis |
Definition at line 48 of file PredisStore.php.
Auth_OpenID_PredisStore::getAssociation | ( | $server_url, | |
$handle = null |
|||
) |
Read association from Redis. If no handle given and multiple associations found, returns latest issued
Definition at line 96 of file PredisStore.php.
References associationKey(), associationServerKey(), and getAssociationFromServer().
|
private |
Function to actually receive and unserialize the association from the server.
Definition at line 121 of file PredisStore.php.
Referenced by getAssociation().
|
private |
Auth_OpenID_PredisStore::removeAssociation | ( | $server_url, | |
$handle | |||
) |
Immediately delete association from Redis.
Definition at line 130 of file PredisStore.php.
References associationKey(), and associationServerKey().
Auth_OpenID_PredisStore::storeAssociation | ( | $server_url, | |
$association | |||
) |
Store association until its expiration time in Redis server. Overwrites any existing association with same server_url and handle. Handles list of associations for every server.
Definition at line 59 of file PredisStore.php.
References associationKey(), and associationServerKey().
Auth_OpenID_PredisStore::supportsCleanup | ( | ) |
Report that this storage doesn't support cleanup
Definition at line 205 of file PredisStore.php.
Auth_OpenID_PredisStore::useNonce | ( | $server_url, | |
$timestamp, | |||
$salt | |||
) |
Create nonce for server and salt, expiring after $Auth_OpenID_SKEW seconds.
Definition at line 151 of file PredisStore.php.
References $Auth_OpenID_SKEW, and nonceKey().
|
protected |
Definition at line 40 of file PredisStore.php.
Referenced by Auth_OpenID_PredisStore().
|
protected |
Definition at line 34 of file PredisStore.php.
Referenced by Auth_OpenID_PredisStore().