revoke an used auth code

This commit is contained in:
Bobselp 2016-04-10 18:05:16 +02:00
parent 7b803365f9
commit 03e8eb6157

View File

@ -110,6 +110,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
$responseType->setAccessToken($accessToken); $responseType->setAccessToken($accessToken);
$responseType->setRefreshToken($refreshToken); $responseType->setRefreshToken($refreshToken);
// Revoke used auth code
$this->authCodeRepository->revokeAuthCode($authCodePayload->auth_code_id);
return $responseType; return $responseType;
} }