public function Oauth2ClientPluginBase::getClientId in OAuth2 Client 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Oauth2Client/Oauth2ClientPluginBase.php \Drupal\oauth2_client\Plugin\Oauth2Client\Oauth2ClientPluginBase::getClientId()
Retrieves the client_id of the OAuth2 server.
Return value
string The client_id of the OAuth2 server.
Overrides Oauth2ClientPluginInterface::getClientId
File
- src/
Plugin/ Oauth2Client/ Oauth2ClientPluginBase.php, line 304
Class
- Oauth2ClientPluginBase
- Base class for Oauth2Client plugins.
Namespace
Drupal\oauth2_client\Plugin\Oauth2ClientCode
public function getClientId() {
$credentials = $this
->retrieveCredentials();
if (empty($credentials['client_id'])) {
throw new Oauth2ClientPluginMissingKeyException('client_id');
}
return $credentials['client_id'];
}