Include redirect_uri check on authorization endpoint on implicit grant

This commit is contained in:
İsmail BASKIN 2016-05-07 17:43:43 +03:00
parent 7285ede563
commit 9a58bc15f6
No known key found for this signature in database
GPG Key ID: D6B75A80D259B2FA

View File

@ -142,6 +142,11 @@ class ImplicitGrant extends AbstractAuthorizeGrant
$this->getEmitter()->emit(new RequestEvent(RequestEvent::CLIENT_AUTHENTICATION_FAILED, $request));
throw OAuthServerException::invalidClient();
}
} elseif (is_array($client->getRedirectUri()) && count($client->getRedirectUri()) !== 1
|| empty($client->getRedirectUri())
) {
$this->getEmitter()->emit(new RequestEvent(RequestEvent::CLIENT_AUTHENTICATION_FAILED, $request));
throw OAuthServerException::invalidClient();
}
$scopes = $this->validateScopes(