for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nord\Lumen\OAuth2\Tests;
use League\OAuth2\Server\Entity\AccessTokenEntity;
use League\OAuth2\Server\Entity\AuthCodeEntity;
use League\OAuth2\Server\Entity\ScopeEntity;
use League\OAuth2\Server\Entity\SessionEntity;
use League\OAuth2\Server\Storage\SessionInterface;
class MockSessionStorage extends MockStorage implements SessionInterface
{
/**
* @inheritdoc
*/
public function getByAccessToken(AccessTokenEntity $entity)
$entity = new SessionEntity($this->server);
$entity->setId('test');
$entity->setOwner('test', 'test');
return $entity;
}
public function getByAuthCode(AuthCodeEntity $authCode)
throw new \Exception('Not implemented');
public function getScopes(SessionEntity $session)
public function create($ownerType, $ownerId, $clientId, $clientRedirectUri = null)
return 1;
public function associateScope(SessionEntity $session, ScopeEntity $scope)