async def _get_with_auth(self, client: httpx.AsyncClient, url: str) -> Any:
        """Make an authenticated GET request to the Confluence REST API using the provided URL.

        By default, we're using OAuth 2.0 with refresh tokens for authentication.
        """
        headers = {
            "Authorization": f"Bearer {self.access_token}",
            "Accept": "application/json",
            "X-Atlassian-Token": "no-check",  # Required for CSRF protection
        }

        # Add cloud instance ID if available
        if self.cloud_id:
            headers["X-Cloud-ID"] = self.cloud_id

        logger.debug(f"Making request to {url} with headers: {headers}")
        response = await client.get(url, headers=headers)

        if not response.is_success:
            logger.error(f"Request failed with status {response.status_code}")
            logger.error(f"Response headers: {dict(response.headers)}")
            logger.error(f"Response body: {response.text}")

            # Special handling for scope-related errors
            if response.status_code == 401:
                error_body = response.json() if response.text else {}
                error_message = error_body.get("message", "")

                if (
                    "scope" in error_message.lower()
                    or "x-failure-category" in response.headers
                    and "SCOPE" in response.headers.get("x-failure-category", "")
                ):
                    logger.error(
                        "OAuth scope error. The token doesn't have the required permissions."
                    )
                    logger.error(
                        "Please verify that your OAuth app has the correct scopes configured."
                    )
                    raise ValueError(f"OAuth scope error: {error_message}.")

        response.raise_for_status()
        return response.json()
Make an authenticated GET request to the Confluence REST API using the provided URL.

        By default, we're using OAuth 2.0 with refresh tokens for authentication.
        
backend/airweave/platform/sources/confluence.py