mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Removed generic getStorage method and replaced with distinct calls to getters
This commit is contained in:
@@ -85,7 +85,7 @@ class AuthCodeGrant extends AbstractGrant
|
||||
}
|
||||
|
||||
// Validate client ID and redirect URI
|
||||
$client = $this->server->getStorage('client')->get(
|
||||
$client = $this->server->getClientStorage()->get(
|
||||
$clientId,
|
||||
null,
|
||||
$redirectUri,
|
||||
@@ -186,7 +186,7 @@ class AuthCodeGrant extends AbstractGrant
|
||||
}
|
||||
|
||||
// Validate client ID and client secret
|
||||
$client = $this->server->getStorage('client')->get(
|
||||
$client = $this->server->getClientStorage()->get(
|
||||
$clientId,
|
||||
$clientSecret,
|
||||
$redirectUri,
|
||||
@@ -204,7 +204,7 @@ class AuthCodeGrant extends AbstractGrant
|
||||
throw new Exception\InvalidRequestException('code');
|
||||
}
|
||||
|
||||
$code = $this->server->getStorage('auth_code')->get($authCode);
|
||||
$code = $this->server->getAuthCodeStorage()->get($authCode);
|
||||
if (($code instanceof AuthCodeEntity) === false) {
|
||||
throw new Exception\InvalidRequestException('code');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user