def invalidate_authorization_code(self, client_id, code, request,
                                      *args, **kwargs):
        log.debug('Destroy grant token for client %r, %r', client_id, code)
        grant = self._grantgetter(client_id=client_id, code=code)
        if grant:
            grant.delete()
Invalidate an authorization code after use.
dataset/ETHPy150Open codalab/codalab-cli/codalab/server/oauth2_provider.py/OAuth2RequestValidator.invalidate_authorization_code