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

"Server not found" error during OAuth 2.0 Authentication #649

Closed qosobrin closed 1 year ago

qosobrin commented 1 year ago

TB 102.7.1 Windows 10 Enterprise 21H2 Build 19044.2486 Windows Feature Experience Pack 120.2212.4190.0 TbSync 4.3 Exchange ActiveSync 4.1.5

Actual behavior

Unable to create a new O356 account in TbSync Account manager since an error occurs during OAuth 2.0 Authentication

Steps to reproduce

TbSync Account Manager > Account actions > Add new account > Exchange ActiveSync > Microsoft Office 365.

Then I provided a name for the account and my actual email address and pressed the "Add account" button. A new window came up trying to request authentication but its URL was not valid ( https://undefined/?response_type=code&client_id=undefined&redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient&scope=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2Fauthorize&login_hint=XXXXXXXX%40XXXXXXXXXX ) so it produced a "Server not found" error (the image is in Galician, my mother language, sorry)

image

I enabled the debug log in TbSync (TbSync Account Manager > Help) and repeated the process. The only thing that I could see in the debug log was this entry:

** Mon Feb 06 2023 10:26:06 GMT+0100 (hora estándar de Europa central) **
[Querry EAS autodiscover V2 URL] : https://autodiscover-s.outlook.com/autodiscover/autodiscover.json?Email=XXXXXXXX%40XXXXXXXXXX&Protocol=ActiveSync

When I accessed this autodiscover URL (https://autodiscover-s.outlook.com/autodiscover/autodiscover.json?Email=XXXXXXXX%40XXXXXXXXXX&Protocol=ActiveSync) in a separate browser window I got the following content:

{"Protocol":"ActiveSync","Url":"https://outlook.office365.com/Microsoft-Server-ActiveSync"}

Note: I changed my email for XXXXXXXX%40XXXXXXXXXX in all entries above.

brtptrs commented 1 year ago

I'm seeing this problem with the normal ubuntu upgrade from today: Ubuntu 22.04 TB 102.7.1

TbSync 4.3 Provider für Exchange ActiveSync 4.1.5 Provider für CalDAV & CardDAV 4.3

ThomasStruller commented 1 year ago

the same issue

tibor-banfalvi commented 1 year ago

The same here: Windows 10 + TB 102.7.1 (64-bit) + M365 Exchange

After TB update to this version sync does not work with existing M365 account (the only error in log: [EventLog] : OAuthServerError::{} ) and I cant set new account ("undefined" in the Oauth2 URL ).

shibmaster commented 1 year ago

Same here! OAuthServerError::{} after updating Thunderbird. TB 102.7.1 TBsync 4.3 Manjaro x64 kernel 5.15.91

jobisoft commented 1 year ago

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

qosobrin commented 1 year ago

Thank you, @jobisoft; I tried it and worked fine. I'm closing this issue.

Best regards.

kidmar commented 1 year ago

When is the new version going to be published on Mozilla website or as a Github release?

jobisoft commented 1 year ago

It is published on ATN: https://addons.thunderbird.net/de/thunderbird/addon/eas-4-tbsync/versions/

kidmar commented 1 year ago

I'm sorry I was looking for an update on TbSync not on the exchange provider. Thank you