

@property
def page_context(self):
    webhook_secret = uuid.uuid4().hex
    request_token = uuid.uuid4().hex
    self.set_cached_webhook_secret(request_token, domain_has_default_gateway)
    domain_has_default_gateway = (SQLMobileBackend.get_domain_default_backend(SQLMobileBackend.SMS, self.domain, id_only=True) is not None)
    return {
        'outgoing_sms_form': TelerivetOutgoingSMSForm(),
        'test_sms_form': TelerivetPhoneNumberForm(),
        'finalize_gateway_form': FinalizeGatewaySetupForm(initial={
            'set_as_default': (FinalizeGatewaySetupForm.NO if domain_has_default_gateway else FinalizeGatewaySetupForm.YES),
        }),
        'webhook_url': absolute_reverse('telerivet_in'),
        'webhook_secret': webhook_secret,
        'request_token': request_token,
    }

dataset/ETHPy150Open dimagi/commcare-hq/corehq/messaging/smsbackends/telerivet/views.py TelerivetSetupView.page_context/VarMisuse@39/51 `webhook_secret`->`domain_has_default_gateway`