I’m seeing similar behaviour in V1.10.0 when trying to reconnect/reauthenticate my Office 365 account:
Sorry we had trouble logging you in.
OAuth Code exchange returned 400 Bad Request: {“error”:“invalid_request”,“error_description”:“AADSTS9002327: Tokens issued for the ‘Single-Page Application’ client-type may only be redeemed via cross-origin requests.\r\nTrace ID: 07387f22-5043-4264-a6b7-275ccdf66200\r\nCorrelation ID: 6abfd984-2b66-46b1-a228-1dac6f1d133b\r\nTimestamp: 2022-03-01 13:35:45Z”,“error_codes”:[9002327],“timestamp”:“2022-03-01 13:35:45Z”,“trace_id”:“07387f22-5043-4264-a6b7-275ccdf66200”,“correlation_id”:“6abfd984-2b66-46b1-a228-1dac6f1d133b”}
Many of us will have limited control over our Office365 account settings as they’re tied to institutions/businesses.
We were able to fix this via messing around with office365 settings, I don’t know which setting fixed it since after messing around with quite a few of them it started working later.
Arimil, were you adjusting settings on the management side or as a 365 user?
For what it’s worth: I’ve been trying out a few different email clients and one thing I noticed is when the other clients used OAuth for the first time, Microsoft would as me if I wanted to allow certain permissions, and I had to hit “yes”.
I never received such a request for mailspring. It just jumped to “You’re all set!” and then failed.
Changes were made on the management side, Mailspring appears to still be using SMTP to send mail. I’ve seen other solutions not need this, I assume they’re using OAuth and the Office365 API instead.
You have to enable SMTP authentication to sign in. In your O365 account go to active users> select user> click mail tab> manage email apps> Tick SMTP authentication
and you are all set to go
Looks like this has been an issue for a while. Using a MacBook Pro M2 Max, installed today and got my Gmail accounts set up and working. I cannot get either one of my Office 365 accounts working. Both give the same error “Authentication Error - Check your username and password. (SMTP)”.
I made sure IMAP was enabled for my user account. Also tried enabling the Authenticated SMTP. Nottaa
Sad that Mailspring is not looking at this. I am not sure why they are stated as one of the best email clients. I was planning to get a subscription for our org replacing Hiri and this looks worse.