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_serverCode
public function getClientDetails($client_key) {
$client = oauth2_server_client_load($client_key);
if ($client) {
// Return a client array in the format expected by the library.
$client = array(
'client_id' => $client->client_key,
'client_secret' => $client->client_secret,
'public_key' => $client->public_key,
// The library expects multiple redirect uris to be separated by
// a space, but the module separates them by a newline, matching
// Drupal behavior in other areas.
'redirect_uri' => str_replace(array(
"\r\n",
"\r",
"\n",
), ' ', $client->redirect_uri),
);
}
return $client;
}