def METHOD_NAME(domain):
    settings, created = GaenOtpServerSettings.objects.get_or_create(domain=domain)
    return {
        'domain': domain,
        'is_enabled': settings.is_enabled,
        'server_url': settings.server_url,
        'auth_token': settings.auth_token,
    }