mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Minor formatting adjustment
This commit is contained in:
parent
73698e28d9
commit
ac818bd921
@ -103,6 +103,7 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
if ($privateKey instanceof CryptKey === false) {
|
if ($privateKey instanceof CryptKey === false) {
|
||||||
$privateKey = new CryptKey($privateKey);
|
$privateKey = new CryptKey($privateKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->privateKey = $privateKey;
|
$this->privateKey = $privateKey;
|
||||||
$this->encryptionKey = $encryptionKey;
|
$this->encryptionKey = $encryptionKey;
|
||||||
|
|
||||||
@ -111,10 +112,13 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
} else {
|
} else {
|
||||||
$responseTypePrototype = clone $responseTypePrototype;
|
$responseTypePrototype = clone $responseTypePrototype;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($responseTypePrototype instanceof AbstractResponseType) {
|
if ($responseTypePrototype instanceof AbstractResponseType) {
|
||||||
$responseTypePrototype->setPrivateKey($this->privateKey);
|
$responseTypePrototype->setPrivateKey($this->privateKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
$responseTypePrototype->setEncryptionKey($this->encryptionKey);
|
$responseTypePrototype->setEncryptionKey($this->encryptionKey);
|
||||||
|
|
||||||
$this->responseTypePrototype = $responseTypePrototype;
|
$this->responseTypePrototype = $responseTypePrototype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user