mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-27 23:40:22 +05:30
BUGFIX: Wrong redirect uri.
This's bugfix when redirect on error.
This commit is contained in:
parent
92d8052a5b
commit
d22f222e65
@ -249,9 +249,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
|
||||
|
||||
$scopes = $this->validateScopes(
|
||||
$this->getQueryStringParameter('scope', $request, $this->defaultScope),
|
||||
is_array($client->getRedirectUri())
|
||||
$redirectUri ?: (is_array($client->getRedirectUri())
|
||||
? $client->getRedirectUri()[0]
|
||||
: $client->getRedirectUri()
|
||||
: $client->getRedirectUri())
|
||||
);
|
||||
|
||||
$stateParameter = $this->getQueryStringParameter('state', $request);
|
||||
|
@ -158,9 +158,9 @@ class ImplicitGrant extends AbstractAuthorizeGrant
|
||||
|
||||
$scopes = $this->validateScopes(
|
||||
$this->getQueryStringParameter('scope', $request, $this->defaultScope),
|
||||
is_array($client->getRedirectUri())
|
||||
$redirectUri ?: (is_array($client->getRedirectUri())
|
||||
? $client->getRedirectUri()[0]
|
||||
: $client->getRedirectUri()
|
||||
: $client->getRedirectUri())
|
||||
);
|
||||
|
||||
// Finalize the requested scopes
|
||||
|
Loading…
Reference in New Issue
Block a user