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

Unable to issue tokens from this API version (AADSTS500201) #363

Open
SimPilotAdamT opened this issue Jul 15, 2024 · 2 comments
Open

Unable to issue tokens from this API version (AADSTS500201) #363

SimPilotAdamT opened this issue Jul 15, 2024 · 2 comments

Comments

@SimPilotAdamT
Copy link

SimPilotAdamT commented Jul 15, 2024

Originally from #180, but that has been inactive since it was opened in 2021.

When using M365Interactive and M365Manual, the login prompt fails, showing the following error message:

AADSTS500201: We are unable to issue tokens from this 
API version for a Microsoft account. Please contact the 
application vendor as they need to use version 2.0 of the
protocol to support this.

According to this SO answer mentioned in #180 (comment), Davmail needs to change over to using ADFS for new logins to be successful. #134 fixes this issue iirc...

@daaugusto
Copy link

I'm facing the same issue, and therefore cannot access anymore my Outlook account with davmail (since October 1st, when Microsoft started enforcing the new authentication method). Is there a workaround?

@daaugusto
Copy link

I ended up ditching Davmail in favor of mutt_oauth2.py (along with mpop and msmtp). I had to join Microsoft Azure free account and configure it to allow accesses from mutt_oauth2.py, but it is working fine now.

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

2 participants