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

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