joomla-oauth-server/com_oauthserver/site/src/Repository/AccessTokenRepository.php

40 lines
1.2 KiB
PHP
Raw Normal View History

<?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.
}
}