From 838f206832212f5b94b8e4457117b4bd6f6d0d69 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Sun, 12 Aug 2018 20:09:55 +0100 Subject: [PATCH] Tidy up comments --- src/Grant/AuthCodeGrant.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Grant/AuthCodeGrant.php b/src/Grant/AuthCodeGrant.php index 406f6ab8..e969df8e 100644 --- a/src/Grant/AuthCodeGrant.php +++ b/src/Grant/AuthCodeGrant.php @@ -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) {