public function getState($clientConfigId, $state)
{
$collection = $this->mongo->selectCollection($this->db, 'state');
$result = $collection->findOne(array('client_config_id' => $clientConfigId, 'state' => $state));
if (null !== $result) {
$result['scope'] = Scope::fromString($result['scope']);
return new fkooman\OAuth\Client\State($result);
}
return false;
}