'In the MSAL Python library, are the ConfidentialClientApplication and its underlying TokenCache objects thread safe?
When using Microsoft Authentication Library for Python (MSAL) on the server side, is it safe to share single ConfidentialClientApplication object between several threads?
In other words, if different users acquire new tokens in parallel threads at the same moment, will the underlying TokenCache remain consistent?
Solution 1:[1]
Based on github PRs history, it should be thread safe: https://github.com/AzureAD/microsoft-authentication-library-for-java/pull/79
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | user12229058 |