class token_storage implements TokenStorageInterface
OAuth storage wrapper for phpbb's cache
Methods
__construct(driver_interface $db, user $user, $oauth_token_table, $oauth_state_table)
Creates token storage for phpBB. |
||
retrieveAccessToken($service)
{@inheritdoc} |
||
storeAccessToken($service, TokenInterface $token)
{@inheritdoc} |
||
hasAccessToken($service)
{@inheritdoc} |
||
clearToken($service)
{@inheritdoc} |
||
clearAllTokens()
{@inheritdoc} |
||
storeAuthorizationState($service, $state)
{@inheritdoc} |
||
hasAuthorizationState($service)
{@inheritdoc} |
||
retrieveAuthorizationState($service)
{@inheritdoc} |
||
clearAuthorizationState($service)
{@inheritdoc} |
||
clearAllAuthorizationStates()
{@inheritdoc} |
||
set_user_id($user_id)
Updates the user_id field in the database assosciated with the token |
||
has_access_token_by_session($service)
Checks to see if an access token exists solely by the session_id of the user |
||
has_state_by_session($service)
Checks to see if a state exists solely by the session_id of the user |
||
retrieve_access_token_by_session($service)
|
||
retrieve_state_by_session($service)
|
||
json_encode_token(TokenInterface $token)
|
||
json_decode_token($json)
|
Details
at line 73
public
__construct(driver_interface $db, user $user, $oauth_token_table, $oauth_state_table)
Creates token storage for phpBB.
at line 84
public
retrieveAccessToken($service)
{@inheritdoc}
at line 109
public
storeAccessToken($service, TokenInterface $token)
{@inheritdoc}
at line 146
public
hasAccessToken($service)
{@inheritdoc}
at line 171
public
clearToken($service)
{@inheritdoc}
at line 194
public
clearAllTokens()
{@inheritdoc}
at line 214
public
storeAuthorizationState($service, $state)
{@inheritdoc}
at line 237
public
hasAuthorizationState($service)
{@inheritdoc}
at line 262
public
retrieveAuthorizationState($service)
{@inheritdoc}
at line 287
public
clearAuthorizationState($service)
{@inheritdoc}
at line 310
public
clearAllAuthorizationStates()
{@inheritdoc}
at line 332
public
set_user_id($user_id)
Updates the user_id field in the database assosciated with the token
at line 354
public
has_access_token_by_session($service)
Checks to see if an access token exists solely by the session_id of the user
at line 377
public
has_state_by_session($service)
Checks to see if a state exists solely by the session_id of the user
at line 405
public
retrieve_access_token_by_session($service)
at line 422
public
retrieve_state_by_session($service)
at line 523
public
json_encode_token(TokenInterface $token)
at line 545
public
json_decode_token($json)