/**
  * {@inheritDoc}
  */
 public function authenticate(ConnectionInterface $connection, $accessToken)
 {
     if (!isset($this->connections[$connection->getId()])) {
         throw new NotManagedConnectionException();
     }
     if (null !== ($client = $this->clientProvider->findByAccessToken($accessToken))) {
         $connection->setClient($client);
         return true;
     }
     return false;
 }