mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-18 17:42:54 +05:30
Added MAC storage getter and setter
This commit is contained in:
parent
1bcf7ee20f
commit
f9e56ff62a
@ -15,6 +15,7 @@ use League\Event\Emitter;
|
|||||||
use League\OAuth2\Server\Storage\AccessTokenInterface;
|
use League\OAuth2\Server\Storage\AccessTokenInterface;
|
||||||
use League\OAuth2\Server\Storage\AuthCodeInterface;
|
use League\OAuth2\Server\Storage\AuthCodeInterface;
|
||||||
use League\OAuth2\Server\Storage\ClientInterface;
|
use League\OAuth2\Server\Storage\ClientInterface;
|
||||||
|
use League\OAuth2\Server\Storage\MacTokenInterface;
|
||||||
use League\OAuth2\Server\Storage\RefreshTokenInterface;
|
use League\OAuth2\Server\Storage\RefreshTokenInterface;
|
||||||
use League\OAuth2\Server\Storage\ScopeInterface;
|
use League\OAuth2\Server\Storage\ScopeInterface;
|
||||||
use League\OAuth2\Server\Storage\SessionInterface;
|
use League\OAuth2\Server\Storage\SessionInterface;
|
||||||
@ -75,6 +76,11 @@ abstract class AbstractServer
|
|||||||
*/
|
*/
|
||||||
protected $clientStorage;
|
protected $clientStorage;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \League\OAuth2\Server\Storage\MacTokenInterface
|
||||||
|
*/
|
||||||
|
protected $macStorage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Token type
|
* Token type
|
||||||
*
|
*
|
||||||
@ -332,4 +338,20 @@ abstract class AbstractServer
|
|||||||
{
|
{
|
||||||
return $this->tokenType;
|
return $this->tokenType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return MacTokenInterface
|
||||||
|
*/
|
||||||
|
public function getMacStorage()
|
||||||
|
{
|
||||||
|
return $this->macStorage;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param MacTokenInterface $macStorage
|
||||||
|
*/
|
||||||
|
public function setMacStorage(MacTokenInterface $macStorage)
|
||||||
|
{
|
||||||
|
$this->macStorage = $macStorage;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user