public function Storage::getPublicKey in OAuth2 Server 7
File
- lib/
Drupal/ oauth2_server/ Storage.php, line 468
Class
- Storage
- Provides Drupal storage (through the underlying Entity API) for the library.
Namespace
Drupal\oauth2_serverCode
public function getPublicKey($client_key = null) {
// The library allows for per-client keys. The module uses global keys
// that are regenerated every day, following Google's example.
$keys = oauth2_server_get_keys();
return $keys['public_key'];
}