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
Mostrar archivo Open project: fkooman/php-oauth-client

Public Methods

Method 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 method

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

deleteAccessToken() public method

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

deleteRefreshToken() public method

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

deleteState() public method

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

deleteStateForContext() public method

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

getAccessToken() public method

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

getRefreshToken() public method

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

getState() public method

public getState ( $clientConfigId, $state )

storeAccessToken() public method

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

storeRefreshToken() public method

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

storeState() public method

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