mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-24 15:04:50 +03:00
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace Webmasterskaya\Component\OauthServer\Site\Repository;
|
||
|
|
||
|
use Joomla\CMS\MVC\Factory\MVCFactoryAwareTrait;
|
||
|
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
|
||
|
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
||
|
use League\OAuth2\Server\Entities\Traits\AccessTokenTrait;
|
||
|
use League\OAuth2\Server\Entities\Traits\EntityTrait;
|
||
|
use League\OAuth2\Server\Entities\Traits\TokenEntityTrait;
|
||
|
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
|
||
|
|
||
|
class AccessTokenRepository implements AccessTokenRepositoryInterface
|
||
|
{
|
||
|
use AccessTokenTrait;
|
||
|
use EntityTrait;
|
||
|
use TokenEntityTrait;
|
||
|
|
||
|
use MVCFactoryAwareTrait;
|
||
|
|
||
|
public function getNewToken(ClientEntityInterface $clientEntity, array $scopes, $userIdentifier = null)
|
||
|
{
|
||
|
// TODO: Implement getNewToken() method.
|
||
|
}
|
||
|
|
||
|
public function persistNewAccessToken(AccessTokenEntityInterface $accessTokenEntity)
|
||
|
{
|
||
|
// TODO: Implement persistNewAccessToken() method.
|
||
|
}
|
||
|
|
||
|
public function revokeAccessToken($tokenId)
|
||
|
{
|
||
|
// TODO: Implement revokeAccessToken() method.
|
||
|
}
|
||
|
|
||
|
public function isAccessTokenRevoked($tokenId)
|
||
|
{
|
||
|
// TODO: Implement isAccessTokenRevoked() method.
|
||
|
}
|
||
|
}
|