phpBB API Documentation
Class

phpbb\auth\provider\oauth\token_storage

class token_storage implements TokenStorageInterface

OAuth storage wrapper for phpbb's cache

Methods

__construct(driver_interface $db, user $user, $auth_provider_oauth_table)

Creates token storage for phpBB.

retrieveAccessToken($service)

{@inheritdoc}

storeAccessToken($service, TokenInterface $token)

{@inheritdoc}

hasAccessToken($service)

{@inheritdoc}

clearToken($service)

{@inheritdoc}

clearAllTokens()

{@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

retrieve_access_token_by_session($service)

json_encode_token(TokenInterface $token)

json_decode_token($json)

Details

at line 59
public __construct(driver_interface $db, user $user, $auth_provider_oauth_table)

Creates token storage for phpBB.

Parameters

driver_interface $db
user $user
$auth_provider_oauth_table

at line 69
public retrieveAccessToken($service)

{@inheritdoc}

Parameters

$service

at line 94
public storeAccessToken($service, TokenInterface $token)

{@inheritdoc}

Parameters

$service
TokenInterface $token

at line 115
public hasAccessToken($service)

{@inheritdoc}

Parameters

$service

at line 140
public clearToken($service)

{@inheritdoc}

Parameters

$service

at line 161
public clearAllTokens()

{@inheritdoc}

at line 181
public set_user_id($user_id)

Updates the user_id field in the database assosciated with the token

Parameters

$user_id

at line 203
public has_access_token_by_session($service)

Checks to see if an access token exists solely by the session_id of the user

Parameters

$service

at line 231
public retrieve_access_token_by_session($service)

Parameters

$service

at line 295
public json_encode_token(TokenInterface $token)

Parameters

TokenInterface $token

at line 317
public json_decode_token($json)

Parameters

$json