AzureAD / microsoft-authentication-library-for-python

Microsoft Authentication Library (MSAL) for Python makes it easy to authenticate to Microsoft Entra ID. General docs are available here https://learn.microsoft.com/entra/msal/python/ Stable APIs are documented here https://msal-python.readthedocs.io. Questions can be asked on www.stackoverflow.com with tag "msal" + "python".
https://stackoverflow.com/questions/tagged/azure-ad-msal+python
Other
770 stars 192 forks source link

Error when caching token #463

Closed bjornulf-dev closed 2 years ago

bjornulf-dev commented 2 years ago

There is an error when attempting to cache a token.

Steps to reproduce the behavior:

Run the confidential_client_secret_sample.py .

The function acquire_token_for_client raise an exception when attempting to cache a token:

File "***/lib/python3.8/site-packages/msal/token_cache.py", line 53, in "-".join([ TypeError: sequence item 3: expected str instance, tuple found

MSAL version: 1.17.0 OS : MacOSx