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".
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