public function Storage::getClientDetails in OAuth2 Server 7
3 calls to Storage::getClientDetails()
- Storage::checkClientCredentials in lib/Drupal/oauth2_server/Storage.php
- Storage::getClientKey in lib/Drupal/oauth2_server/Storage.php
- Storage::isPublicClient in lib/Drupal/oauth2_server/Storage.php
File
- lib/Drupal/oauth2_server/Storage.php, line 39
Class
- Storage
- Provides Drupal storage (through the underlying Entity API) for the library.
Namespace
Drupal\oauth2_server
Code
public function getClientDetails($client_key) {
$client = oauth2_server_client_load($client_key);
if ($client) {
$client = array(
'client_id' => $client->client_key,
'client_secret' => $client->client_secret,
'public_key' => $client->public_key,
'redirect_uri' => str_replace(array(
"\r\n",
"\r",
"\n",
), ' ', $client->redirect_uri),
);
}
return $client;
}