PHP Class fkooman\OAuth\Client\MongoStorage

This is an implementation of the StorageInterface of the fkooman client for MongoDB storage.
Inheritance: implements fkooman\OAuth\Client\StorageInterface
Afficher le fichier Open project: fkooman/php-oauth-client

Méthodes publiques

Méthode Description
__construct ( MongoClient $mongo, $db )
deleteAccessToken ( fkooman\OAuth\Client\AccessToken $accessToken )
deleteRefreshToken ( fkooman\OAuth\Client\RefreshToken $refreshToken )
deleteState ( fkooman\OAuth\Client\State $state )
deleteStateForContext ( $clientConfigId, fkooman\OAuth\Client\Context $context )
getAccessToken ( $clientConfigId, fkooman\OAuth\Client\Context $context )
getRefreshToken ( $clientConfigId, fkooman\OAuth\Client\Context $context )
getState ( $clientConfigId, $state )
storeAccessToken ( fkooman\OAuth\Client\AccessToken $accessToken )
storeRefreshToken ( fkooman\OAuth\Client\RefreshToken $refreshToken )
storeState ( fkooman\OAuth\Client\State $state )

Method Details

__construct() public méthode

public __construct ( MongoClient $mongo, $db )
$mongo MongoClient

deleteAccessToken() public méthode

public deleteAccessToken ( fkooman\OAuth\Client\AccessToken $accessToken )
$accessToken fkooman\OAuth\Client\AccessToken

deleteRefreshToken() public méthode

public deleteRefreshToken ( fkooman\OAuth\Client\RefreshToken $refreshToken )
$refreshToken fkooman\OAuth\Client\RefreshToken

deleteState() public méthode

public deleteState ( fkooman\OAuth\Client\State $state )
$state fkooman\OAuth\Client\State

deleteStateForContext() public méthode

public deleteStateForContext ( $clientConfigId, fkooman\OAuth\Client\Context $context )
$context fkooman\OAuth\Client\Context

getAccessToken() public méthode

public getAccessToken ( $clientConfigId, fkooman\OAuth\Client\Context $context )
$context fkooman\OAuth\Client\Context

getRefreshToken() public méthode

public getRefreshToken ( $clientConfigId, fkooman\OAuth\Client\Context $context )
$context fkooman\OAuth\Client\Context

getState() public méthode

public getState ( $clientConfigId, $state )

storeAccessToken() public méthode

public storeAccessToken ( fkooman\OAuth\Client\AccessToken $accessToken )
$accessToken fkooman\OAuth\Client\AccessToken

storeRefreshToken() public méthode

public storeRefreshToken ( fkooman\OAuth\Client\RefreshToken $refreshToken )
$refreshToken fkooman\OAuth\Client\RefreshToken

storeState() public méthode

public storeState ( fkooman\OAuth\Client\State $state )
$state fkooman\OAuth\Client\State