mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Tidy up comments
This commit is contained in:
parent
972808561d
commit
838f206832
@ -71,6 +71,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
|
||||
throw OAuthServerException::invalidRequest('client_id');
|
||||
}
|
||||
|
||||
// Only validate the client if it is confidential
|
||||
if ($this->clientRepository->isClientConfidential($clientId)) {
|
||||
$client = $this->validateClient($request);
|
||||
} else {
|
||||
@ -82,12 +83,6 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
|
||||
);
|
||||
}
|
||||
|
||||
// Validate request
|
||||
|
||||
// HERE I ONLY WANT TO VALIDATE IF THE CLIENT IS CONFIDENTIAL!
|
||||
|
||||
|
||||
|
||||
$encryptedAuthCode = $this->getRequestParameter('code', $request, null);
|
||||
|
||||
if ($encryptedAuthCode === null) {
|
||||
|
Loading…
Reference in New Issue
Block a user