public function Storage::getClientKey in OAuth2 Server 7
File
- lib/
Drupal/ oauth2_server/ Storage.php, line 244
Class
- Storage
- Provides Drupal storage (through the underlying Entity API) for the library.
Namespace
Drupal\oauth2_serverCode
public function getClientKey($client_key, $subject) {
// While the API supports a key per user (subject), the module only supports
// one key per client, since it's the simpler and more frequent use case.
$client = $this
->getClientDetails($client_key);
return $client ? $client['public_key'] : FALSE;
}