[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
Copyright: | (c) phpBB Limited |
License: | GNU General Public License, version 2 (GPL-2.0) |
File Size: | 592 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
token_storage:: (24 methods):
__construct()
retrieveAccessToken()
storeAccessToken()
hasAccessToken()
clearToken()
clearAllTokens()
storeAuthorizationState()
hasAuthorizationState()
retrieveAuthorizationState()
clearAuthorizationState()
clearAllAuthorizationStates()
set_user_id()
has_access_token_by_session()
has_state_by_session()
_has_acess_token()
retrieve_access_token_by_session()
retrieve_state_by_session()
_retrieve_access_token()
_retrieve_state()
get_access_token_row()
get_state_row()
json_encode_token()
json_decode_token()
get_service_name_for_db()
Class: token_storage - X-Ref
OAuth storage wrapper for phpbb's cache__construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $oauth_token_table, $oauth_state_table) X-Ref |
Creates token storage for phpBB. param: \phpbb\db\driver\driver_interface $db param: \phpbb\user $user param: string $oauth_token_table param: string $oauth_state_table |
retrieveAccessToken($service) X-Ref |
{@inheritdoc} |
storeAccessToken($service, TokenInterface $token) X-Ref |
{@inheritdoc} |
hasAccessToken($service) X-Ref |
{@inheritdoc} |
clearToken($service) X-Ref |
{@inheritdoc} |
clearAllTokens() X-Ref |
{@inheritdoc} |
storeAuthorizationState($service, $state) X-Ref |
{@inheritdoc} |
hasAuthorizationState($service) X-Ref |
{@inheritdoc} |
retrieveAuthorizationState($service) X-Ref |
{@inheritdoc} |
clearAuthorizationState($service) X-Ref |
{@inheritdoc} |
clearAllAuthorizationStates() X-Ref |
{@inheritdoc} |
set_user_id($user_id) X-Ref |
Updates the user_id field in the database assosciated with the token param: int $user_id |
has_access_token_by_session($service) X-Ref |
Checks to see if an access token exists solely by the session_id of the user param: string $service The name of the OAuth service return: bool true if they have token, false if they don't |
has_state_by_session($service) X-Ref |
Checks to see if a state exists solely by the session_id of the user param: string $service The name of the OAuth service return: bool true if they have state, false if they don't |
_has_acess_token($data) X-Ref |
A helper function that performs the query for has access token functions param: array $data return: bool |
retrieve_access_token_by_session($service) X-Ref |
No description |
retrieve_state_by_session($service) X-Ref |
No description |
_retrieve_access_token($data) X-Ref |
A helper function that performs the query for retrieve access token functions Also checks if the token is a valid token param: array $data return: mixed |
_retrieve_state($data) X-Ref |
A helper function that performs the query for retrieve state functions param: array $data return: mixed |
get_access_token_row($data) X-Ref |
A helper function that performs the query for retrieving an access token param: array $data return: mixed |
get_state_row($data) X-Ref |
A helper function that performs the query for retrieving a state param: array $data return: mixed |
json_encode_token(TokenInterface $token) X-Ref |
No description |
json_decode_token($json) X-Ref |
No description |
get_service_name_for_db($service) X-Ref |
Returns the name of the service as it must be stored in the database. param: string $service The name of the OAuth service return: string The name of the OAuth service as it needs to be stored |
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |