/**
  * @param \OAuth2\Endpoint\Authorization $authorization
  */
 private function checkDisplay(Authorization $authorization)
 {
     if (!in_array($authorization->getDisplay(), $authorization->getAllowedDisplayValues())) {
         throw new \InvalidArgumentException('Invalid "display" parameter. Allowed values are ' . json_encode($authorization->getAllowedDisplayValues()));
     }
 }