public function Oauth2Client::isConfidential in Simple OAuth (OAuth2) & OpenID Connect 8.2
Checks if the current entity is confidential.
A confidential client is one that requires the secret to be validated.
Return value
bool TRUE if it is confidential. FALSE otherwise.
Overrides Oauth2ClientInterface::isConfidential
File
- src/
Entity/ Oauth2Client.php, line 227
Class
- Oauth2Client
- Defines the Oauth2 Token entity.
Namespace
Drupal\simple_oauth\EntityCode
public function isConfidential() {
return (bool) $this
->get('confidential')->value;
}