You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue WOULD happen if BOTH of the following conditions were met:
Customer's code explicitly uses the cache_lock.py
Customer's environment does NOT have portalocker installed.
HOWEVER, neither of the two conditions should occur.
#1 is not the correct way to use MSAL EX. Please follow our samples.
#2 i.e. the absence of portalocker shall not be an issue if the caller did #1 right, because portalocker is no longer required since MSAL EX 1.3.x. If customer fixes #1, they won't need to fiddle with portalocker.
We're encountering a runtime failure using msal-extensions==1.3.1 due to an invalid reference to portalocker.exceptions in cache_lock.py:
LockError = portalocker.exceptions.LockException
This causes authentication logic to break with:
AttributeError: module 'portalocker' has no attribute 'exceptions'
The current version of the portalocker package (e.g., 2.10.1) no longer exposes an exceptions module or attribute at the top level.
Suggested Fix:
Change the reference to:
import portalocker
LockError = portalocker.LockException
Confirmed Environment:
msal-extensions: 1.3.1
portalocker: 2.10.1
Python 3.11
Runtime: Azure App Service (Linux)
Please let us know if a fix can be included in the next release. We're happy to help validate or contribute a PR.
The text was updated successfully, but these errors were encountered: