public static function Client::storeToken in OAuth2 Client 7
Same name and namespace in other branches
- 7.2 src/Client.php \OAuth2\Client::storeToken()
Store the token data.
Parameters
$key: The token identifier.
array $token: The token data to store.
2 calls to Client::storeToken()
- Client::getAccessToken in ./
oauth2_client.inc - Get and return an access token.
- oauth2_client_set_token in ./
oauth2_client.module - Share an access token with oauth2_client.
File
- ./
oauth2_client.inc, line 127 - Class OAuth2\Client
Class
- Client
- The class OAuth2\Client is used to get authorization from an oauth2 server. Its only goal is to get an access_token from the oauth2 server, so the only public function (besides the constructor) is getAccessToken().
Namespace
OAuth2Code
public static function storeToken($key, array $token) {
$_SESSION['oauth2_client']['token'][$key] = $token;
}