Updated the interfaces and dropped oauth version

Seems the oauth lib's stable version is 3.2, dropped down from the 4 version
to that.
This commit is contained in:
Josh Sherman 2014-10-14 22:05:52 -04:00
parent c244e02d46
commit dc06f37320
5 changed files with 128 additions and 2 deletions

View file

@ -9,7 +9,18 @@ class ScopeStorage extends StorageAdapter implements ScopeInterface
{
public function get($scope, $grant_type = null, $client_id = null)
{
$sql = 'SELECT * FROM oauth_scopes WHERE id = ?;';
$results = $this->db->fetch($sql, [$scope]);
if (count($results) === 0)
{
return null;
}
return (new ScopeEntity($this->server))->hydrate([
'id' => $result[0]['id'],
'description' => $result[0]['description'],
]);
}
}