BUGFIX: Wrong redirect uri.

This's bugfix when redirect on error.
This commit is contained in:
liverbool 2018-01-13 11:52:31 +07:00
parent 92d8052a5b
commit d22f222e65
2 changed files with 4 additions and 4 deletions

View File

@ -249,9 +249,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
$scopes = $this->validateScopes( $scopes = $this->validateScopes(
$this->getQueryStringParameter('scope', $request, $this->defaultScope), $this->getQueryStringParameter('scope', $request, $this->defaultScope),
is_array($client->getRedirectUri()) $redirectUri ?: (is_array($client->getRedirectUri())
? $client->getRedirectUri()[0] ? $client->getRedirectUri()[0]
: $client->getRedirectUri() : $client->getRedirectUri())
); );
$stateParameter = $this->getQueryStringParameter('state', $request); $stateParameter = $this->getQueryStringParameter('state', $request);

View File

@ -158,9 +158,9 @@ class ImplicitGrant extends AbstractAuthorizeGrant
$scopes = $this->validateScopes( $scopes = $this->validateScopes(
$this->getQueryStringParameter('scope', $request, $this->defaultScope), $this->getQueryStringParameter('scope', $request, $this->defaultScope),
is_array($client->getRedirectUri()) $redirectUri ?: (is_array($client->getRedirectUri())
? $client->getRedirectUri()[0] ? $client->getRedirectUri()[0]
: $client->getRedirectUri() : $client->getRedirectUri())
); );
// Finalize the requested scopes // Finalize the requested scopes