401 when using Python exchangelib to get an email messages with Basic Auth from Outlook

Cutwrack 0 Reputation points
2024-01-25T23:13:17.44+00:00

Hello guys! I was using a Python script with exchangelib library to obtain a messages from Outlook mailbox. I was using basic auth (email and password) From November till now it was okay, yesterday I started to get a 401 error from https://outlook.office365.com/EWS/Exchange.asmx I know that EWS is deprecating Basic Auth from January 2023 and I need to use OAuth method, but why it was working from November 2023 till yesterday? Something was changed? Or this deprecation wasn't affecting me till yesterday? Thanks a lot in advance!

Outlook
Outlook
A family of Microsoft email and calendar products.
4,502 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,497 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,795 questions
{count} votes

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.