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".
We have MSAL python code. When it runs behind the authenticated proxy, it receives the error as follows: Getting error requests.exceptions.ProxyError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /b44900f1-2def-4c3b-9ec6-9020d604e19e/v2.0/.well-known/openid-configuration (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')));
Questions:
Does MSAL python supports invocation of API from behind authenticated proxy server? If yes, how to make the call successfully?
When the account authenticates to proxy server, the password includes special characters, such as '@','&'. How to allow these special characters in the call?
What we have tried the following methods but none of them can help on the above two questions.
We have MSAL python code. When it runs behind the authenticated proxy, it receives the error as follows: Getting error requests.exceptions.ProxyError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /b44900f1-2def-4c3b-9ec6-9020d604e19e/v2.0/.well-known/openid-configuration (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')));
Questions:
What we have tried the following methods but none of them can help on the above two questions.
ps: the relevant code we have tried are: proxies = {
app = PublicClientApplication(
client_id = client_id,
authority = 'https://login.microsoftonline.com/' + tenant_id,
proxies = proxies
)