Ensure response type also has access to the encryption key

This commit is contained in:
Alex Bilbie 2017-07-01 16:29:50 +01:00
parent 76c1349181
commit dd5eee150d
2 changed files with 8 additions and 0 deletions

View File

@ -226,6 +226,7 @@ class AuthorizationServer implements EmitterAwareInterface
}
$this->responseType->setPrivateKey($this->privateKey);
$this->responseType->setEncryptionKey($this->encryptionKey);
return $this->responseType;
}

View File

@ -33,4 +33,11 @@ interface ResponseTypeInterface
* @return ResponseInterface
*/
public function generateHttpResponse(ResponseInterface $response);
/**
* Set the encryption key
*
* @param string|null $key
*/
public function setEncryptionKey($key = null);
}