Oauth2TokenInterface.php in Simple OAuth (OAuth2) & OpenID Connect 5.x
Same filename and directory in other branches
Namespace
Drupal\simple_oauth\EntityFile
src/Entity/Oauth2TokenInterface.phpView source
<?php
namespace Drupal\simple_oauth\Entity;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
/**
* Provides an interface defining Access Token entities.
*
* @ingroup simple_oauth
*/
interface Oauth2TokenInterface extends ContentEntityInterface, EntityChangedInterface {
/**
* Revoke a token.
*/
public function revoke();
/**
* Check if the token was revoked.
*
* @return bool
* TRUE if the token is revoked. FALSE otherwise.
*/
public function isRevoked();
}
Interfaces
Name | Description |
---|---|
Oauth2TokenInterface | Provides an interface defining Access Token entities. |