Closed
Description
This affects Python 2.7 on Windows. The root cause is in msal-extensions
(AzureAD/microsoft-authentication-extensions-for-python#69). Excluding SharedTokenCacheCredential
is a workaround:
DefaultAzureCredential(exclude_shared_token_cache_credential=True)
Another workaround is to create the missing file:
import os
from msal_extensions import FilePersistence
persistence = FilePersistence(os.environ['LOCALAPPDATA'] + '\.IdentityService\msal.cache')
persistence.save('')