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
796 stars 200 forks source link

Clarify that allow_broker is not applicable to ConfidentialClientApplication #559

Closed rayluo closed 1 year ago

rayluo commented 1 year ago

Although MSAL provides two top-level classes: PublicClientApplication and ConfidentialClientApplication, there is another less-popular but still-doable pattern which is to use the base class ClientApplication directly. So, that allow_broker is applicable to both PublicClientApplication and the base class ClientApplication. So, that dynamic check in base class is necessary.

The ConfidentialClientApplication inherits the __init__() and its documentation from base class. Now, we choose to add a sentence in that documentation to clarify that the parameter is not applicable to ConfidentialClientApplication.

See it in action in the staged documentation.

This resolves #544.