mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-12 14:52:28 +05:30
Server constructor expects path to private key
This commit is contained in:
parent
2a20de991b
commit
e03ad0d52f
@ -48,10 +48,12 @@ class Server implements EmitterAwareInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* New server instance
|
* New server instance
|
||||||
|
*
|
||||||
|
* @param string $pathToPrivateKey
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct($pathToPrivateKey)
|
||||||
{
|
{
|
||||||
$this->setDefaultResponseType(new BearerTokenResponse());
|
$this->setDefaultResponseType(new BearerTokenResponse($pathToPrivateKey));
|
||||||
$this->setDefaultAccessTokenTTL(new DateInterval('PT01H')); // default token TTL of 1 hour
|
$this->setDefaultAccessTokenTTL(new DateInterval('PT01H')); // default token TTL of 1 hour
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user