oAuth2 setup for Outlook imap? Authentication errors.

User Help for Seamonkey and Mozilla Suite
njsg
Posts: 40
Joined: August 27th, 2004, 2:41 am
Location: Portugal
Contact:

Re: oAuth2 Setup For Outlook POP or Imap Fails Authentication

Post by njsg »

wombatk wrote: July 23rd, 2024, 2:03 am Thank you for the quick reply, and the tips about images.

Here is the blank pop-up I got in the Seamonkey email/browser pop up:

Image
I don't know why, this sometimes happens: text will be invisible. Locally, I do have a profile where I've deactivated CSS transitions in a way that'd break this, as these parts are apparently uncovered with such "transitions", but it seems to be happening also in profiles without these CSS properties.

You may be able to guess where do you need to click if you have seen the form before and know more or less how does it work: the DOM inspector will help you figuring out where each part is, and if you know how the MS login form normally works, you can try to click through it.

I have no idea why is this happening, but seems to go away after a few retries?
wombatk wrote: July 23rd, 2024, 2:03 am I've used DOM inspector to find that the URL shown at the top of the login popup is:

https://login.microsoftonline.com/commo ... otmail.com
[...]
i.e. same "personal account" complaint as in other topic.
A quick note to anyone seeing this: if your account is not an organization account (i.e. it's "free" / "Hotmail", or what MS is calling a "personal account"), and, after loading, your login form has the address https://login.microsoftonline.com/..., you can be sure it will not work. The login for "personal accounts" is done at login.live.com, and, from my testing with Thunderbird, you will be redirected to that one automatically when OAuth2 is working.
Nuno J. Silva
wombatk
Posts: 6
Joined: July 22nd, 2024, 6:29 pm

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by wombatk »

My apologies for starting a new thread ... Seamonkey gave me a different login-popup to that described in this thread so it was not clear to me that it was the same issue.

I had seen frg's post (now above) - but misunderstood it to mean that the 19b1 version (dated after his comment) would fix it. There was nothing later on the https://www.seamonkey-project.org/releases/. 19b1 responds exactly like version 18 release did.

I have now back-tracked to the bug report and followed the link to https://www.wg9s.com/comm-253/seamonkey ... taller.exe which I've installed. It's dated 23/07/2024 11:00 UTC which appears to be in the last 11 hours.

It does not resolve the issue on my PC - Windows 10 Pro which has all current updates installed. Seamonkey mail now opens a completely blank pop-up that immediately closes (ie too fast to screen capture).

Is there some other "pre-release" that frg is referring to ? Or is this a different issue ?

--- Kevin
frg
Posts: 1379
Joined: December 15th, 2015, 1:20 pm

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by frg »

The .20 prerelease should generally fix it. Maybe try with a new account in a new profile just for testing.

In existing configurations old scope data might prevent getting a working account. Maybe the explanation from njsg helps:

https://logbot.thereisonlyxul.org/seamo ... 240721#c89

Need to track down the scope issue for a final release it seems.

FRG
wombatk
Posts: 6
Joined: July 22nd, 2024, 6:29 pm

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by wombatk »

Thanks, the fix described for tomman on the logbot page https://logbot.thereisonlyxul.org/seamo ... 240721#c83
also fixed my issue with logging in to hotmail to download emails - a personal account that's over 25 years old.

Steps Required:

1. enter the pseudo url "about.config" in the Seamonkey address bar, a popup warning that you are about to void your warranty appears, ;) hit accept

2. In the Search box, type "scope". From the list, find the entry like

mail.server.server1.oauth2.scope https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access
(1 is for the first email account in my profile, change to whatever is appropriate for yours).

3. Edit the string to change office365 to office...

Image

4. Close and reopen Seamonkey, test Get Messages from Account, allow the access...

Image

This was tested on the Seamonkey version 20 pre-release of 23/07/2024. I do not know if it works on the V18 or V19, or
will be needed in the final version 20 release or later.

--- Kevin
Diamanti
Posts: 820
Joined: June 12th, 2008, 9:02 am

outlook.com oAuth not working

Post by Diamanti »

oAuth outlook.com imap not work.
Not possible to access with personal account.
No problem in Thunderbird 115.
I changed also oauth2.scope SM with TB.
leishirsute
Posts: 116
Joined: September 16th, 2006, 7:50 pm

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by leishirsute »

@wombatk After following the instructions above, I changed Authentication Method to OAuth2 and restarted Seamonkey. The problem did not resolve for SeaMonkey/2.53.18.2 .
wombatk
Posts: 6
Joined: July 22nd, 2024, 6:29 pm

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by wombatk »

You need to do Step 0, download the pre release version 20 or maybe later and install it. See logbot link above to find pre release version.
Diamanti
Posts: 820
Joined: June 12th, 2008, 9:02 am

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by Diamanti »

I confirm that it is working in seamonkey-2.53.20b1pre.
frg
Posts: 1379
Joined: December 15th, 2015, 1:20 pm

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by frg »

As stated I will see that it ends up in the final 2.53.19 but this one will be a bit delayed for personal reasons aka. lack of time at the moment.
LD-531
Posts: 13
Joined: November 25th, 2018, 3:03 am

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by LD-531 »

outlook.office365.com with oA2 receive mail is OK now. but smtp-mail.outlook.com with oA2 may be little bugs:

1.oA2 option can only be chosen during add new outgoing server.

2.sending email always prompted:
  Sending of the message failed.
  The Outgoing server (SMTP) smtp-mail.outlook.com does not support the selected authentication method. Please change the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'.

SM 2.53.19 @ W7 x64
njsg
Posts: 40
Joined: August 27th, 2004, 2:41 am
Location: Portugal
Contact:

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by njsg »

LD-531 wrote: September 4th, 2024, 8:23 pm outlook.office365.com with oA2 receive mail is OK now. but smtp-mail.outlook.com with oA2 may be little bugs:

1.oA2 option can only be chosen during add new outgoing server.

2.sending email always prompted:
  Sending of the message failed.
  The Outgoing server (SMTP) smtp-mail.outlook.com does not support the selected authentication method. Please change the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'.

SM 2.53.19 @ W7 x64
Try with smtp.office365.com instead (If I'm recalling the right one... I think that's the one which worked for me).
Nuno J. Silva
LD-531
Posts: 13
Joined: November 25th, 2018, 3:03 am

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by LD-531 »

njsg wrote: September 5th, 2024, 12:07 am
LD-531 wrote: September 4th, 2024, 8:23 pm outlook.office365.com with oA2 receive mail is OK now. but smtp-mail.outlook.com with oA2 may be little bugs:

1.oA2 option can only be chosen during add new outgoing server.

2.sending email always prompted:
  Sending of the message failed.
  The Outgoing server (SMTP) smtp-mail.outlook.com does not support the selected authentication method. Please change the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'.

SM 2.53.19 @ W7 x64
Try with smtp.office365.com instead (If I'm recalling the right one... I think that's the one which worked for me).
it works, thank you.
Agent virtuel
Posts: 314
Joined: January 27th, 2019, 2:58 am

Re: oAuth2 setup for Outlook imap? Authentication errors.

Post by Agent virtuel »

Hello

I've received an update
Image
Following the update, i've checked
As far as i'm concerned

IMAP account
outlook.office365.com 993 SSL/TLS OAuth2
outlook.office365.com 587 STARTTLS OAuth2
POP account
outlook.office365.com 995 SSL/TLS OAuth2
outlook.office365.com 587 STARTTLS OAuth2

That's ok
Post Reply