jobisoft / TbSync

[Thunderbird Add-On] Central user interface to manage cloud accounts and to synchronize their contact, task and calendar information with Thunderbird
https://github.com/jobisoft/TbSync/wiki/About:-TbSync
Mozilla Public License 2.0
810 stars 54 forks source link

OAuth 2.0 authentication server returned: {} for Outlook Office365 mail #645

Closed mdiskuze closed 1 year ago

mdiskuze commented 1 year ago

Your environment

TbSync version: 4.3 Thunderbird version: 102.7.0 (64-bit) - Ubuntu 22.04.1 Provider for EAS: 4.1.5

Expected behavior

All mails and calendar will be synchronized

Actual behavior

When Thunderbird starts - he ask me for allowing access into my account (by mobile push notification, MS auth android app with user+pwd). Push notification is correctly processed and TB login window is closed. But after few seconds TB tells me: image

When I try to connect thru TbSync: image

Event log: image

Last lines from debug.log:

as) **
[EventLog] : The IANA timezone <Europe/Kyiv> cannot be mapped to any Exchange timezone.

** Wed Jan 18 2023 10:25:15 GMT+0100 (StYedoevropsk� standardn� 
as) **
[EventLog] : The IANA timezone <Pacific/Kanton> cannot be mapped to any Exchange timezone.

** Wed Jan 18 2023 10:25:15 GMT+0100 (StYedoevropsk� standardn� 
as) **
[Loaded provider] : dav::CalDAV & CardDAV (4.3)

** Wed Jan 18 2023 10:25:15 GMT+0100 (StYedoevropsk� standardn� 
as) **
[Loaded provider] : eas::Exchange ActiveSync (4.1.5)

** Wed Jan 18 2023 10:27:11 GMT+0100 (StYedoevropsk� standardn� 
as) **
[setSyncState] : State: prepare.request.options, Account: M... T...

** Wed Jan 18 2023 10:27:11 GMT+0100 (StYedoevropsk� standardn� 
as) **
[Sending] : OPTIONS https://outlook.office365.com/Microsoft-Server-ActiveSync

** Wed Jan 18 2023 10:27:11 GMT+0100 (StYedoevropsk� standardn� 
as) **
[setSyncState] : State: oauthprompt, Account: M... T...

** Wed Jan 18 2023 10:27:11 GMT+0100 (StYedoevropsk� standardn� 
as) **
[EventLog] : OAuthServerError::{}

** Wed Jan 18 2023 10:27:11 GMT+0100 (StYedoevropsk� standardn� 
as) **
[EventLog] : OAuthServerError::{}

** Wed Jan 18 2023 10:27:11 GMT+0100 (StYedoevropsk� standardn� 
as) **
[setSyncState] : State: accountdone, Account: M... T...

Steps to reproduce

Try to sync OAuth 2.0 MS Outlook mail account.

mdiskuze commented 1 year ago

Fixed by downgrade TB into version 102.4.2 ! This was my last hope :-). But I still think that TbSync or EAS Provider has some problem with TB version 102.7.0 ...

sudo apt install thunderbird=1:102.4.2+build2-0ubuntu0.22.04.1

jobisoft commented 1 year ago

Here is some information about the change in 102.7: https://thunderbird.topicbox.com/groups/enterprise/T262ef074c0833a12-Mb7dd2995cbea31000255ac10

mdiskuze commented 1 year ago

Here is some information about the change in 102.7: https://thunderbird.topicbox.com/groups/enterprise/T262ef074c0833a12-Mb7dd2995cbea31000255ac10

Yes, this probably be the problem ... Thanks for this link, I will consult this with our ICT.

jeron1 commented 1 year ago

Some info here too: https://www.reddit.com/r/Thunderbird/comments/yqwes1/notice_to_microsoft_office_365_enterprise_users/ Below is comment that I posted at link above: "Single user of Microsoft 365 Business Basic on KDE neon 5.26. OAuth2 works fine on TB 102.4.2, but problem when upgrade to 102.7: password accepted in Msft dialogbox, SMS code appears to be accepted, but then a message appears in small TB pop-up "Authentication failure while connecting to server outlook.office365.com". Everything works when downgrade from 102.7 back to 102.4.2."

jobisoft commented 1 year ago

The 102.7 update will not be shipped. Where did you get it from, by the way? The TB team has only released a candidate, but nothing official.

fkn-iteratec commented 1 year ago

I have also the problem with the 102.7.0 and it is installed on my Ubuntu Linux via snap. Not sure why there is a newer version than the official release page of thunderbird says.

ghost commented 1 year ago

I had the same problems since yesterday when thunderbird was upgraded to 102.7.0 on Ubuntu 22.04.

I downgraded to 102.4.2

pulver22 commented 1 year ago

Same problem here, TB upgraded to 102.7.0 yesterday on PopOS 18.04 .

BubuOT commented 1 year ago

The 102.7 update will not be shipped. Where did you get it from, by the way? The TB team has only released a candidate, but nothing official.

Updated automatically via snap on Ubuntu here.

PresGas commented 1 year ago

Looks like the ppa also got the update.

https://launchpad.net/~mozillateam/+archive/ubuntu/ppa

jeron1 commented 1 year ago

It was an automatic update. Per Muon: "Origin: Firefox ESR and Thunderbird stable builds". from muon 2023-01-19_10-13 (I'm forcing 102.4.2 for now.)

danzone commented 1 year ago

Same problem here: Thunderbird updated from ppa (Ubuntu Linux 22.10), issue solved downgrading Thunderbird to 102.4

PresGas commented 1 year ago

The mozillateam ppa just had another release of 102.7

Unpacking thunderbird (1:102.7.0+build1-0ubuntu0.22.04.2~mt1) over (1:102.7.0+build1-0ubuntu0.22.04.1~mt1)

...but there was no change to status of OAuth.

fkn-iteratec commented 1 year ago

See also here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1810760

kidmar commented 1 year ago

I have the same problem with 102.7.1 (that fixed Thunderbird problem with Oauth2 and Office365). When I try to sync the calendar a new window opens (that should ask for credentials, but this is the url: https://undefined/?response_type=code&client_id=undefined&redirect_uri=http

Obviously it doesn't work and gives a "Cannot contact server" error

xtrailrunner commented 1 year ago

Hi, I'm really interested in this subject but not at the moment. I have tried to unsubscribe several times with no effect. Can you pls. remove me from this thread. Regards Juergen

namawakame commented 1 year ago

Same problem as kidmar (https://github.com/jobisoft/TbSync/issues/645#issuecomment-1411875093) with a Microsoft 365 account and TB 102.7.1.

Attempted to delete and then re-add the account but on adding I just get a "Server not found" error after entering a user name and clicking "Add account". The M365 domain is a default xxxxx.onmicrosoft.com so I think the server should be discoverable.

jobisoft commented 1 year ago

Hi, I'm really interested in this subject but not at the moment. I have tried to unsubscribe several times with no effect. Can you pls. remove me from this thread. Regards Juergen

There is an unsubscribe button on the top-ish right side of this page.

BAnd313 commented 1 year ago

Seems fixed in latest beta, see comments in the official blog post:

https://blog.thunderbird.net/2023/01/important-message-for-microsoft-office-365-enterprise-users/#comment-3149

kidmar commented 1 year ago

Seems fixed in latest beta, see comments in the official blog post:

https://blog.thunderbird.net/2023/01/important-message-for-microsoft-office-365-enterprise-users/#comment-3149

Thunderbird got fixed in 102.7.1 but TbSync still doesn't work

BAnd313 commented 1 year ago

Seems fixed in latest beta, see comments in the official blog post: https://blog.thunderbird.net/2023/01/important-message-for-microsoft-office-365-enterprise-users/#comment-3149

Thunderbird got fixed in 102.7.1 but TbSync still doesn't work

As Jason Evangelho said in his latest comment (#comment-3138), 102.7.1 was not a definitive fix, since many users still faced this issue, so they pulled the update.

I can't log in with TB 102.7.1 either, regardless of TbSync

kidmar commented 1 year ago

After that comment version 102.7.1 disappeared, but after some days they released it again with the same number. The new version works for me. Anyway this has nothing to do with TbSync (I think). It looks like TbSync uses a different authentication token and a different way to request it. I have TB working with 102.7.1 but TbSync still isn't working so the two are not correlated. TbSync and TB broke on 102.7.0 probably because of some underlying changes in the authentication process, TB addressed those breaking changes in 102.7.1 (for most people, but not for everyone) while TbSync still isn't working

DerXteMensch commented 1 year ago

After that comment version 102.7.1 disappeared, but after some days they released it again with the same number. The new version works for me. Anyway this has nothing to do with TbSync (I think). It looks like TbSync uses a different authentication token and a different way to request it. I have TB working with 102.7.1 but TbSync still isn't working so the two are not correlated. TbSync and TB broke on 102.7.0 probably because of some underlying changes in the authentication process, TB addressed those breaking changes in 102.7.1 (for most people, but not for everyone) while TbSync still isn't working

I can confirm this.

Thunderbird works finally with the second build of 102.7.1 with Office 365 accounts.

Strangely yesterday after the installation of 102.7.1-2, I re-enabled TbSync and it worked. Later I added some elements to the Calendar in Thunderbird and it didnt' work anymore and I got authentification error {}. Since ever then, I always get the error. Even after de-activating the Office365 account (which deletes all local elements which aren't synced yet) and re-enabling it, I always get the error.

danzone commented 1 year ago

I just updated it on my Ubuntu 22.10 (Thunderbird build 1:102.7.1+build2-0ubuntu0.22.10.1 from https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu) and now it works (both Thunderbird Auth and TbSynch auth).

danzone commented 1 year ago

And now, after some time, I have the same error in TbSynch, while Thunderbird is still working. Really strange behaviour

fgo-stei commented 1 year ago

I can confirm Thunderbird got fixed in 102.7.1 but TbSync still doesn't work For the moment i rolled back to TB102.6.1

xtrailrunner commented 1 year ago

Hi, I'm really interested in this subject but not at the moment. I have tried to unsubscribe several times with no effect. Can you pls. remove me from this thread. Regards Juergen

There is an unsubscribe button on the top-ish right side of this page.

Yeah. But it does not work. Tried several times.

jobisoft commented 1 year ago

Fixed here? https://github.com/jobisoft/EAS-4-TbSync/issues/215#issuecomment-1416725608

wolffi commented 1 year ago

Fixed here? jobisoft/EAS-4-TbSync#215 (comment)

This fixes it for me on TB 102.7.1! Thank you very much @jobisoft !

albzotto commented 1 year ago

Hello, I have same issue. Downloaded .zip file but I do not how use it. Thank you

bermeitinger-b commented 1 year ago

You install it from the Addons page in Thunderbird.

albzotto commented 1 year ago

Hello, I have same issue. Downloaded .zip file but I do not how use it. Thank you

albzotto commented 1 year ago

Great! It works! Thank you for support

fgo-stei commented 1 year ago

I followed the steps below to get it running:

  1. Download the zip file
  2. rename it to have .xpi extension in stead of .zip extension
  3. Go into the Add on page in thunderbird, click on the gear icon and select to install from file
  4. browse to the file, select and install it
  5. Check that the active "Provider for Exchange ActiveSync" addon version is 4.2 (February 6th)
  6. Check that TbSync works in the active Thunderbird version
  7. Update to TB102.7.1
  8. Check TbSync again

This worked perfectly well for me

mdiskuze commented 1 year ago

Fixed here? jobisoft/EAS-4-TbSync#215 (comment)

Works for me in TB 102.7.1, thanks!

danzone commented 1 year ago

It works for me! (Ubuntu 22.10, Thunderbird from PPA). Great, thanks!