def revoke_handler(self, f):
        @wraps(f)
        def decorated(*args, **kwargs):
            server = self.server

            token = request.params.get('token')
            request.token_type_hint = request.params.get('token_type_hint')
            if token:
                request.token = token

            uri, http_method, body, headers = extract_params(True)
            ret = server.create_revocation_response(
                uri, headers=headers, body=body, http_method=http_method)
            return create_response(*ret)
        return decorated
Access/refresh token revoke decorator.
dataset/ETHPy150Open codalab/codalab-cli/codalab/server/oauth2_provider.py/OAuth2Provider.revoke_handler