From b1ce1f872be4243366a794c5da120991843ed1c2 Mon Sep 17 00:00:00 2001 From: Frederik Bosch Date: Fri, 25 Mar 2016 17:11:13 +0100 Subject: [PATCH] client identifier passed where user identifier is expected --- src/Grant/ClientCredentialsGrant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grant/ClientCredentialsGrant.php b/src/Grant/ClientCredentialsGrant.php index 41a47f6f..21673f78 100644 --- a/src/Grant/ClientCredentialsGrant.php +++ b/src/Grant/ClientCredentialsGrant.php @@ -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);