Description
Login / Reconnect to Office results in a 400 Bad Request.
Office reports a successful login, but MailSpring can’t process the answer or is using an outdated/invalid grant/scope. I can’t find any debug logs of the authentication requests.
320400 [2022-03-02 08:01:52.926] [background] [info] Fetching XOAuth2 access token (office365) for 259a6058
320400 [2022-03-02 08:01:53.373] [background] [critical]
*** Mailspring Sync
*** An exception occurred during program execution:
*** {“debuginfo”:"Sign in to your account RETURNED {“error”:“invalid_grant”,“error_description”:“AADSTS700084: The refresh token was issued to a single page app (SPA), and therefore has a fixed, limited lifetime of 1.00:00:00, which cannot be extended. It is now expired and a new sign in request must be sent by the SPA to the sign in page. The token was issued on 2022-02-28T08:27:26.2594659Z.\r\nTrace ID: 9637feb4-a091-4a8a-ade4-05cdccca8100\r\nCorrelation ID: 7bee19c1-9f0b-46da-a8ad-9c973a5c909d\r\nTimestamp: 2022-03-02 07:01:54Z”,“error_codes”:[700084],“timestamp”:“2022-03-02 07:01:54Z”,“trace_id”:“9637feb4-a091-4a8a-ade4-05cdccca8100”,“correlation_id”:“7bee19c1-9f0b-46da-a8ad-9c973a5c909d”,“error_uri”:“https://login.microsoftonline.com/error?code=700084"}",“key”:"Invalid Response Code: 400”,“retryable”:false,“what”:“std::exception”}
To Reproduce…
Steps to reproduce the behavior:
- Go to preferences Accounts tab
- Click on the “+” button at the bottom
- Select “Office 365”
- Authentication process is startet
- Microsoft Office reports a successful login
- MailSpring reports a bad request
Expected Behavior
Login is working successful and I can see my mails. This was working 1 week ago.
Screenshots
Setup
-
OS and Version:
❯ cat /etc/os-release
NAME=“Pop!_OS”
VERSION=“21.10”
ID=pop
ID_LIKE=“ubuntu debian”
PRETTY_NAME=“Pop!_OS 21.10”
VERSION_ID=“21.10” -
Installation Method: snap
-
Mailspring Version:
❯ snap info mailspring
name: mailspring
snap-id: 0TyNxgP6wEM3nTXzymtc1wOnvl2P6Iij
tracking: latest/stable
refresh-date: 2 days ago, at 22:52 CET
channels:
latest/stable: 1.10.0 2022-02-28 (510) 153MB -
latest/candidate: 1.10.0 2022-02-28 (510) 153MB -
latest/beta: 1.10.0 2022-02-28 (510) 153MB -
latest/edge: 1.10.0 2022-03-01 (511) 153MB -
installed: 1.10.0 (510) 153MB -