allow scopes extraction on GET requests for auth_code and implicit grants

This commit is contained in:
Julián Gutiérrez
2016-03-14 00:12:14 +01:00
parent c3ffed2daf
commit ced63e2051
7 changed files with 18 additions and 25 deletions

View File

@@ -94,7 +94,11 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
throw OAuthServerException::invalidClient();
}
$scopes = $this->validateScopes($request, $client, $client->getRedirectUri());
$scopes = $this->validateScopes(
$this->getQueryStringParameter('scope', $request),
$client,
$client->getRedirectUri()
);
$queryString = http_build_query($request->getQueryParams());
$postbackUri = new Uri(
sprintf(