fix: use allow_unencrypted_storage for headless Linux token cache

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Mueller 2026-04-23 21:15:16 +02:00
parent 3ddb3ce8c4
commit dd9e2f4acd

View File

@ -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)