urllib3 for 'login.microsoft.com' is not working

Intruder 1 Reputation point
2022-12-21T05:15:41.167+00:00

Hello,

I’m getting the below error when used simple GET request with https://login.microsoftonline.com only when I’m connected to the office network

ERROR;

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘login.microsoftonline.com’, port=443): Max retries exceeded with /7831e6d9-dc6c-4cd1-9ec6-1dc2b4133195/v2.0/.well-known/openid-configuration (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000020770E376D0>, ‘Connection to login.microsoftonline.com timed out. (connect timeout=None)’))

I tried to check for the proxy but looks like it is using some script for proxy.
How can I make it work?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,526 Reputation points Moderator
    2022-12-30T03:36:06.703+00:00

    Hello, something is blocking you from reaching https://login.microsoftonline.com/. You need to work with your net admin to ensure there's no firewall, proxy or net appliance blocking the connection. Optionally, ensure Microsoft 365 Common and Office Online IP addresses and URLs are allowed/whitelisted.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.