'Check that a token is valid.
Optionally, also ensure that it is owned by a specific tenant.
Identical to ``validate_token``, except does not return a response.
The code in ``keystone.common.wsgi.render_response`` will remove
the content body.'

@controller.v2_deprecated
@controller.protected()
def validate_token_head(self, request, token_id):

    v3_token_response = self.token_provider_api.validate_token(token_id)
    v2_helper = V2TokenDataHelper()
    token = v2_helper.v3_to_v2_token(v3_token_response, token_id)
    belongs_to = request.params.get('belongsTo')
    if belongs_to:
        self._token_belongs_to(token, belongs_to)
    return token
