From 0d20c755d40bbfc39556f742ae585bd4862a2684 Mon Sep 17 00:00:00 2001 From: Ilya Bulah Date: Thu, 14 Jun 2018 23:33:58 +0300 Subject: [PATCH] Formatting --- src/Grant/ImplicitGrant.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index b4157883..51a2f32c 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -118,6 +118,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant $request, $this->getServerParameter('PHP_AUTH_USER', $request) ); + if (is_null($clientId)) { throw OAuthServerException::invalidRequest('client_id'); } @@ -135,6 +136,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant } $redirectUri = $this->getQueryStringParameter('redirect_uri', $request); + if ($redirectUri !== null) { if ( is_string($client->getRedirectUri())