/**
  * @param \OAuth2\Client\ClientInterface $client
  * @param array                          $params
  *
  * @throws \OAuth2\Exception\BadRequestExceptionInterface
  */
 private function checkResponseTypeAllowedForTheClient(ClientInterface $client, array $params)
 {
     if (!$client->isResponseTypeAllowed($params['response_type'])) {
         throw $this->getExceptionManager()->getBadRequestException(ExceptionManagerInterface::ERROR_UNAUTHORIZED_CLIENT, 'The response type "' . $params['response_type'] . '" is unauthorized for this client.');
     }
 }