class AuthCodeRepository in Simple OAuth (OAuth2) & OpenID Connect 8.4
Same name and namespace in other branches
- 5.x src/Repositories/AuthCodeRepository.php \Drupal\simple_oauth\Repositories\AuthCodeRepository
The repository for the Auth Code grant.
Hierarchy
- class \Drupal\simple_oauth\Repositories\AuthCodeRepository implements \League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface uses RevocableTokenRepositoryTrait
Expanded class hierarchy of AuthCodeRepository
1 string reference to 'AuthCodeRepository'
1 service uses AuthCodeRepository
File
- src/
Repositories/ AuthCodeRepository.php, line 11
Namespace
Drupal\simple_oauth\RepositoriesView source
class AuthCodeRepository implements AuthCodeRepositoryInterface {
use RevocableTokenRepositoryTrait;
/**
* The bundle ID.
*
* @var string
*/
protected static $bundleId = 'auth_code';
/**
* The OAuth2 entity class name.
*
* @var string
*/
protected static $entityClass = 'Drupal\\simple_oauth\\Entities\\AuthCodeEntity';
/**
* The OAuth2 entity interface name.
*
* @var string
*/
protected static $entityInterface = 'League\\OAuth2\\Server\\Entities\\AuthCodeEntityInterface';
/**
* {@inheritdoc}
*/
public function getNewAuthCode() {
return $this
->getNew();
}
/**
* {@inheritdoc}
*/
public function persistNewAuthCode(AuthCodeEntityInterface $auth_code_entity) {
$this
->persistNew($auth_code_entity);
}
/**
* {@inheritdoc}
*/
public function revokeAuthCode($code_id) {
$this
->revoke($code_id);
}
/**
* {@inheritdoc}
*/
public function isAuthCodeRevoked($code_id) {
return $this
->isRevoked($code_id);
}
}