Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Outlook auth not working with r5753

#2710

Starting with r5753, I'm getting asked to authorize my outlook.com account. When I choose "Open Browser Window", Firefox is opened with an login.microsoftonline.com URL that is quickly redirected to the "Authorization Flow Completed" site on mailmate-app.com.

Unfortunately, it's still marked as unavailable and the auth flow is triggered again shortly after.

Reported by Florian · December 16th, 2020 @ 05:58 PM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to fixcommitted

    I'm seeing something like this (with Safari) if I delete the com.freron.MailMate.Outlook.* tokens in Keychain Access (which is currently how to force re-authentication). But then it works if I relaunch MailMate and take the account online again (with another round of authentication). I'll investigate the issue, but you can also try relaunching.

    December 17th, 2020 @ 07:32 AM

  2. benny
    benny
    • State changed from fixcommitted to reproduced

    December 17th, 2020 @ 07:32 AM

  3. Florian
    Florian

    Yes, removing the tokens in Keychain Access and auth after relaunch worked. Thanks for the workaround!

    I've noticed that the tokens in Keychain Access were dated to Nov-14 which was also the last used date of a second MailMate entry I had at https://account.live.com/consent/Manage. This entry also used a different icon than the one that is displayed for the current authorized app, but was clearly linked to MailMate.

    Removing that entry didn't solve the issue, though. Only removing the tokens in Keychain Access helped.

    December 17th, 2020 @ 07:40 AM

  4. benny
    benny
    • State changed from reproduced to cantreproduce

    I cannot reproduce the issue now, but I also cannot see how it could be related to what was in the keychain. The authentication process (in the browser) does not use that information.

    How outlook.com accounts are synchronized has been changed (to be able to use an external browser) and this really should trigger re-authentication of the account. I'm unsure if there's a bug in how MailMate does this or if it's the authentication server which gets a bit confused. I'll keep an eye on it. Let me know if it fails for you again and you spot a pattern of some kind. In theory, you should not see the issue again as long as you have the refresh token in the keychain.

    December 17th, 2020 @ 07:50 AM

  5. benny
    benny

    Following the consent-link I also have both variants of MailMate (it's caused by Microsoft having 2 different systems for registering apps and I'm now only using the new one). This is as expected and only the new one should now be needed.

    December 17th, 2020 @ 07:54 AM

  6. benny
    benny

    For future reference, the error I got from the Microsoft server when it still failed was:

    AADSTS900144: The request body must contain the following parameter: 'client_id'.
    

    That seems to indicate that MailMate did something wrong, but I don't see how that could happen. (I'll take another look.)

    December 17th, 2020 @ 07:58 AM

  7. Chad Randl
    Chad Randl

    I am also having this issue when I try to set up my Exchange email account. I don't see a token in Keychain Access as described above. Tried on Safari and then Chrome as default browsers, but both go to login.microsoftonline.com but before I can enter my Exchange password, it closes that window and up pops a new window stating: "Authorization flow completed. You can now close this browser window and return to MailMate." Thanks for any help.

    February 15th, 2021 @ 08:38 PM

  8. benny
    benny

    @Chad: See my reply to the direct feedback email you sent me.

    February 18th, 2021 @ 09:44 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.