refactor(remote_auth): remove unused requests.Session

The session was created with headers but never used. The class saves sessions locally via the cache rather than uploading to a remote server.
This commit is contained in:
Andy
2026-01-23 17:20:39 -07:00
parent 0c7d20c943
commit 6f5f25fa9b

View File

@@ -16,7 +16,6 @@ import logging
from typing import Any, Dict, Optional
import click
import requests
import yaml
from unshackle.core.api.session_serializer import serialize_session
@@ -53,8 +52,6 @@ class RemoteAuthenticator:
"""
self.remote_url = remote_url.rstrip("/")
self.api_key = api_key
self.session = requests.Session()
self.session.headers.update({"X-API-Key": self.api_key, "Content-Type": "application/json"})
def authenticate_service_locally(
self, service_tag: str, profile: Optional[str] = None, force_reauth: bool = False