Merge pull request #498 from frederikbosch/client_user_id_replaced

Client identifier passed where user identifier is expected
This commit is contained in:
Alex Bilbie 2016-04-09 13:55:16 +01:00
commit 6f0a0cca4e

View File

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