mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Private and public key paths are injected into grants now
This commit is contained in:
parent
5f22ead287
commit
f6664c6917
@ -70,6 +70,16 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
*/
|
*/
|
||||||
protected $scopeRepository;
|
protected $scopeRepository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $pathToPrivateKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $pathToPublicKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ClientRepositoryInterface $clientRepository
|
* @param ClientRepositoryInterface $clientRepository
|
||||||
*/
|
*/
|
||||||
@ -94,6 +104,22 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
$this->scopeRepository = $scopeRepository;
|
$this->scopeRepository = $scopeRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $pathToPrivateKey
|
||||||
|
*/
|
||||||
|
public function setPathToPrivateKey($pathToPrivateKey)
|
||||||
|
{
|
||||||
|
$this->pathToPrivateKey = $pathToPrivateKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $pathToPublicKey
|
||||||
|
*/
|
||||||
|
public function setPathToPublicKey($pathToPublicKey)
|
||||||
|
{
|
||||||
|
$this->pathToPublicKey = $pathToPublicKey;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -95,4 +95,17 @@ interface GrantTypeInterface
|
|||||||
*/
|
*/
|
||||||
public function setScopeRepository(ScopeRepositoryInterface $scopeRepository);
|
public function setScopeRepository(ScopeRepositoryInterface $scopeRepository);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the path to the private key
|
||||||
|
*
|
||||||
|
* @param string $pathToPrivateKey
|
||||||
|
*/
|
||||||
|
public function setPathToPrivateKey($pathToPrivateKey);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the path to the public key
|
||||||
|
*
|
||||||
|
* @param string $pathToPublicKey
|
||||||
|
*/
|
||||||
|
public function setPathToPublicKey($pathToPublicKey);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user