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:
+1
-5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user