為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Cannot login to gmail account in Thunderbird, Oauth doesn't authorize thunderbird

  • 10 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 sfhowes

more options

Thunderbird Version: Tried on stable 68 and beta OS Version: MacOS Catalina

I'm currently unable to add my gmail account to Thunderbird, upon logging in via Oauth thunderbird does not actually get added to authorized apps after clicking <Allow> at the end of the Oauth flow. Once it fails it then has error "Unable to log in at server. Probably wrong configuration, username or password." however I'm certain that is not correct as I even tried copy pasting password between thunderbird's password field and gmail's oauth one to verify they are identical.

I'm also not sure which end the issue is one given the app doesn't actually get added as authorized on Google account. As a comparison I did try with the builtin mail app on MacOS and it worked correctly so I'm unsure why Oauth is not working through thunderbird. One thing I did notice though is that the served Oauth pages are visually different when using Oauth via the builtin mail app compared to thunderbird.

Thunderbird Version: Tried on stable 68 and beta OS Version: MacOS Catalina I'm currently unable to add my gmail account to Thunderbird, upon logging in via Oauth thunderbird does not actually get added to authorized apps after clicking <Allow> at the end of the Oauth flow. Once it fails it then has error "Unable to log in at server. Probably wrong configuration, username or password." however I'm certain that is not correct as I even tried copy pasting password between thunderbird's password field and gmail's oauth one to verify they are identical. I'm also not sure which end the issue is one given the app doesn't actually get added as authorized on Google account. As a comparison I did try with the builtin mail app on MacOS and it worked correctly so I'm unsure why Oauth is not working through thunderbird. One thing I did notice though is that the served Oauth pages are visually different when using Oauth via the builtin mail app compared to thunderbird.

被選擇的解決方法

所有回覆 (10)

more options

This is also happening on my personal laptop running Ubuntu so it seems independent of operating system conditions.

more options

I'm experiencing it with G Suite accounts on both MacOS and Windows. Thought I would end up pinning it on Apple again since I had to migrate a bunch of users away from Apple Mail last week because Catalina broke the PGP addon they were using.

I've fought for Thunderbird to be the standard in our org so hopefully this gets solved quickly.

more options

James Browning said

This is also happening on my personal laptop running Ubuntu so it seems independent of operating system conditions.

See the discussion here. The workaround is to enable 'less-secure apps' and apply normal password authentication.

more options

sfhowes said

James Browning said
This is also happening on my personal laptop running Ubuntu so it seems independent of operating system conditions.

See the discussion here. The workaround is to enable 'less-secure apps' and apply normal password authentication.

I have 2FA on all accounts so "less-secure apps" doesn't work. I tried using an app password but that just failed due to incorrect login details.

more options

The account I added today with normal password and access by less-secure apps doesn't have 2FA. The Two step verification section here suggests you might get it to work if you delete cookies in TB.

more options

sfhowes said

The account I added today with normal password and access by less-secure apps doesn't have 2FA. The Two step verification section here suggests you might get it to work if you delete cookies in TB.

Unfortunately this didn't work either, both cleared cookies and tried allowing all third-party ones however it still fails in exactly the same way.

more options

選擇的解決方法

See this bug report about OAuth and Google:

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

Workaround in comment #22.

TB 68.2.1: https://www.thunderbird.net/en-US/thunderbird/68.2.1/releasenotes/

由 sfhowes 於 修改

more options

This happened to me this morning. I remembered being queried by Google about trusted apps a couple of days ago and agreeing that I didn't want untrusted apps to access my account.

SOLUTION: go to your Google account and allow it to be accessed by untrusted apps.

QUESTION: When/how will Thunderbird get to be trusted by Google?

由 Granny Franny 於 修改

more options

I guess you missed all the discussion on using Oauth2 authorization instead of normal password. The required Oauth2 protocol required by gmail has been in Thunderbird for a year now. The people that keep delaying the process by turning on the Gmail less secure apps switch at gmail are just delaying the inevitable. Gmail will turn this back off every now and then and you get the error message again.

more options

Granny Franny said

This happened to me this morning. I remembered being queried by Google about trusted apps a couple of days ago and agreeing that I didn't want untrusted apps to access my account. SOLUTION: go to your Google account and allow it to be accessed by untrusted apps. QUESTION: When/how will Thunderbird get to be trusted by Google?

If you access a gmail IMAP account in TB with OAuth2 authentication, it works even if access by 'less-secure apps' is OFF in Google settings, but for POP access with OAuth2, it appears the setting must be ON. I'm not sure if this is a bug or intentional, but IMAP with OAuth2 is currently the recommended setup.