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".
The following ManagedIdentitySources do not currently support user-assigned managed identities:
AzureArc, CloudShell, ServiceFabric
If a user-assigned clientId or resourceId is specified for these sources, we should throw with a message similar to:
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/5c7c527b173b5f2a719926fb89ccd68bc55d1b3e/src/client/Microsoft.Identity.Client/MsalErrorMessage.cs#L424
This behavior should be consistent cross-language.
Original issue:
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4837