TYPO3 CMS  TYPO3_6-2
Auth_OpenID_PredisStore Class Reference
Inheritance diagram for Auth_OpenID_PredisStore:
Auth_OpenID_OpenIDStore

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 ()
 
- Public Member Functions inherited from Auth_OpenID_OpenIDStore
 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)
 

Detailed Description

Definition at line 29 of file PredisStore.php.

Member Function Documentation

◆ associationKey()

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().

◆ associationServerKey()

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::Auth_OpenID_PredisStore ( \Predis\Client  $redis,
  $prefix = '' 
)

Initializes a new Auth_OpenID_PredisStore instance.

Parameters
\Predis\Client$redisPredis client object
string$prefixPrefix for all keys stored to the Redis

Definition at line 48 of file PredisStore.php.

References $prefix, and $redis.

◆ getAssociation()

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().

◆ getAssociationFromServer()

Auth_OpenID_PredisStore::getAssociationFromServer (   $associationKey)
private

Function to actually receive and unserialize the association from the server.

Definition at line 121 of file PredisStore.php.

Referenced by getAssociation().

◆ nonceKey()

Auth_OpenID_PredisStore::nonceKey (   $server_url,
  $salt 
)
private

Build up nonce key

Definition at line 175 of file PredisStore.php.

Referenced by useNonce().

◆ removeAssociation()

Auth_OpenID_PredisStore::removeAssociation (   $server_url,
  $handle 
)

Immediately delete association from Redis.

Definition at line 130 of file PredisStore.php.

References associationKey(), and associationServerKey().

◆ storeAssociation()

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().

◆ supportsCleanup()

Auth_OpenID_PredisStore::supportsCleanup ( )

Report that this storage doesn't support cleanup

Definition at line 205 of file PredisStore.php.

◆ useNonce()

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().

Member Data Documentation

◆ $prefix

Auth_OpenID_PredisStore::$prefix
protected

Definition at line 40 of file PredisStore.php.

Referenced by Auth_OpenID_PredisStore().

◆ $redis

Auth_OpenID_PredisStore::$redis
protected

Definition at line 34 of file PredisStore.php.

Referenced by Auth_OpenID_PredisStore().