Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Office 365 requires 'modern authentication' using OAUTH2 #10

Open
geerlingguy opened this issue Dec 9, 2022 · 4 comments
Open

Office 365 requires 'modern authentication' using OAUTH2 #10

geerlingguy opened this issue Dec 9, 2022 · 4 comments

Comments

@geerlingguy
Copy link
Owner

See: https://www.example-code.com/python/office365_imap_oauth_authentication.asp

The code I'm currently using deals with normal IMAP authentication (username + password). Microsoft is now requiring OAUTH2 tokens to authenticate to their servers.

@geerlingguy
Copy link
Owner Author

Someone else working on this on Stack Overflow, too: https://stackoverflow.com/a/60773366

@geerlingguy
Copy link
Owner Author

Possibly we could use an 'App Password'? https://stackoverflow.com/a/73908966

@geerlingguy
Copy link
Owner Author

We might just try doing email forwarding to another account where we can turn on 2FA and set up an App Password.

@geerlingguy
Copy link
Owner Author

Meh, that was not a fun experience, and App Password doesn't seem to allow 'basic auth' with it and IMAP, I kept getting LOGIN failed from Python.

So I'm back to working on using the o365 Python library.

But ran into this problem tonight: My daughter's school took over my personal Microsoft account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant