client identifier passed where user identifier is expected

This commit is contained in:
Frederik Bosch 2016-03-25 17:11:13 +01:00
parent 9533595394
commit b1ce1f872b

View File

@ -34,7 +34,7 @@ class ClientCredentialsGrant extends AbstractGrant
$scopes = $this->scopeRepository->finalizeScopes($scopes, $this->getIdentifier(), $client);
// Issue and persist access token
$accessToken = $this->issueAccessToken($accessTokenTTL, $client, $client->getIdentifier(), $scopes);
$accessToken = $this->issueAccessToken($accessTokenTTL, $client, null, $scopes);
// Inject access token into response type
$responseType->setAccessToken($accessToken);