From dd9e2f4acde9f559c6ca64aca5f8ccfa33e8af6d Mon Sep 17 00:00:00 2001 From: Christian Mueller Date: Thu, 23 Apr 2026 21:15:16 +0200 Subject: [PATCH] fix: use allow_unencrypted_storage for headless Linux token cache Co-Authored-By: Claude Opus 4.6 (1M context) --- graph_client.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/graph_client.py b/graph_client.py index 322658d..8c296c2 100644 --- a/graph_client.py +++ b/graph_client.py @@ -10,7 +10,7 @@ from database import get_setting, set_setting logger = logging.getLogger(__name__) CACHE_OPTIONS = TokenCachePersistenceOptions( - name="busylight", allow_unencrypted_cache=True + name="busylight", allow_unencrypted_storage=True ) @@ -35,8 +35,6 @@ class GraphAPI: self.credential = DeviceCodeCredential( client_id=client_id, tenant_id=tenant_id, - enable_persistent_cache=True, - allow_unencrypted_cache=True, cache_persistence_options=CACHE_OPTIONS, authentication_record=record, ) @@ -59,8 +57,6 @@ class GraphAPI: self.credential = DeviceCodeCredential( client_id=client_id, tenant_id=tenant_id, - enable_persistent_cache=True, - allow_unencrypted_cache=True, cache_persistence_options=CACHE_OPTIONS, ) record = self.credential.authenticate(tenant_id=tenant_id, scopes=scopes)