oauth2-server/examples/src/Repositories/AuthCodeRepository.php

42 lines
1.0 KiB
PHP
Raw Normal View History

2016-02-12 13:32:58 +00:00
<?php
namespace OAuth2ServerExamples\Repositories;
use League\OAuth2\Server\Entities\Interfaces\AuthCodeEntityInterface;
use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface;
class AuthCodeRepository implements AuthCodeRepositoryInterface
{
/**
2016-02-19 18:09:39 -05:00
* Persists a new auth code to permanent storage.
2016-02-12 13:32:58 +00:00
*
* @param \League\OAuth2\Server\Entities\Interfaces\AuthCodeEntityInterface $authCodeEntity
*/
public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity)
{
// TODO: Implement persistNewAuthCode() method.
}
/**
2016-02-19 18:09:39 -05:00
* Revoke an auth code.
2016-02-12 13:32:58 +00:00
*
* @param string $codeId
*/
public function revokeAuthCode($codeId)
{
// TODO: Implement revokeAuthCode() method.
}
/**
2016-02-19 18:09:39 -05:00
* Check if the auth code has been revoked.
2016-02-12 13:32:58 +00:00
*
* @param string $codeId
*
* @return bool Return true if this code has been revoked
*/
public function isAuthCodeRevoked($codeId)
{
// TODO: Implement isAuthCodeRevoked() method.
}
2016-02-19 18:09:39 -05:00
}