def _create_put_request(self, url, json_data, headers_dict={}):

        if "Content-Type" not in headers_dict:
            raise defer.error(
                RuntimeError("Must include Content-Type header for PUTs"))

        return self._create_request(
            "PUT",
            url,
            producer=_JsonProducer(json_data),
            headers_dict=headers_dict
        )
In the validation step, ask the device to generate a challenge.
dataset/ETHPy150Open matrix-org/synapse/contrib/cmdclient/http.py/TwistedHttpClient._create_put_request--crossover with--dataset/ETHPy150Open Bouke/django-two-factor-auth/two_factor/views/core.py/SetupView.render_next_step