Closed Bug 1655316 Opened 4 years ago Closed 3 years ago

Gmail authentication window "add security exception" does not pop up when adding a new account on v78.0.1

Categories

(Thunderbird :: Account Manager, defect)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: kotysh, Unassigned)

References

Details

Attachments

(10 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15/fxd2Y4K8-19

Steps to reproduce:

Download the latest version of Thunderbird 78.0.1
Add an existing gmail account (File -> New -> Existing Mail account)
Type in my gmail address and password, press Continue, then Done.
I receive an error message that something is wrong with my configuration, username or password. The gmail popup that is supposed to show up, where I authenticate never shows up. Unable to add the gmail account.

Repeat the same steps on ver 68.10.0 works fine.

Actual results:

Unable to add the gmail account. I receive an error message that something is wrong with my configuration, username or password. The gmail popup that is supposed to show up, where I authenticate never shows up.

Expected results:

It should've presented the web popup window from google asking me to authenticate, after which it should've added the account.

In the last few minutes I've tested 5 account creates using beta 79 (somewhat close to what 78.0.1) is, as have a couple other people - I didn't encounter a valid problem.

I did however mess myself up when I created an account with address X and at the oauth pop up I used account Y. And future attempts to login or setup the account failed - I had to delete the saved credentials in preferences > privacy

Component: Untriaged → Account Manager

Hi,
I encounter the same problem. Oauth2 is never asking for the Gmail password.

Other email clients like Evolution or even Thunderbird 68 work properly.

Clearing all passwords in Thunderbird 78 and re-creating the account does not help.

When 78 rolled out of beta, I installed it and setup three 3 of my Gmail accounts, all using IMAP and OAuth2 and all of them configured without issues. The same with a 70yr old user who I helped yesterday to customise their Tbird account settings in the support forum. In my own setup, I never enter the password (I don't see the point of doing so when I know very well that it's not going to work), and when I click Done, the OAuth2 pop up webpage shows up as expected every time. I never experienced the reported problem in 68 either. I will try to reproduce this on a fresh v78.1.0 profile, this time supplying a password, and see how it goes. A workaround is to leave the password field blank. Supply the name, addresses and click continue then done. The new account will shortly attempt to reach the servers, starting the OAuth2 process.

Maybe it is OS dependent ? Happened to me on mac like the OP
(macOS Catalina)

(In reply to matxx.webmaster from comment #4)

Maybe it is OS dependent ? Happened to me on mac like the OP
(macOS Catalina)

Could be. I will try it out on High Sierra (that's the only version I have access to at the moment).

I finally got to testing Tbird 78.1.0 64-bit on macOS 10.13 (High Sierra) with one of my Gmail accounts using IMAP. I left the password field blank and when I clicked Continue, the attached OAuth2 webpage showed up immediately with my address pre-filled. I closed it (did not proceed with the OAuth2 authentication) so it took me back to the account setup wizard. As expected, testing the password failed and a warning appeared below the password field. I entered the correct Gmail password then clicked Continue, and the OAuth2 webpage popped up again. The other attachments show my progress up to completion. Thunderbird was installed the normal way (mount dmg file and drag Tbird to Applications).

12 retries later (with 12 different Gmail accounts) and I still haven't been able to reproduce this problem. I even tried it while Tbird is in offline mode, but the Done button wasn't available (of course not). Got back online, tried again and everything went smoothly as with all the other attempts.

I still did not get it running for Gmail.

First some information on my environment:
OS: Ubuntu 18.04.4 LTS
Thunderbird: 78.1.0 (64-bit)

I removed all accounts (even Exchange/Outlook accounts), removed all calendars, disabled all add-ons ("TbSync" and "EAS for TbSync"), cleared all passwords and restarted again. When initially trying to set-up the email account it always tells me that the login to the server failed (wrong configuration, user or password). However, I am sure the credentials are fine (they work properly in other email programs).

The OAuth2 dialog never pops up, even if I provide on purpose an empty or a wrong password in the set-up dialog.

It would really be helpful if one could force an oauth2 login, or do a proper log-out to get a new login.

... and just for completeness:
Even after all these tries, using Thunderbird 68.10.0 on the same platform just works fine.

(In reply to alexandre.mayor from comment #16)

I still did not get it running for Gmail.

First some information on my environment:
OS: Ubuntu 18.04.4 LTS
Thunderbird: 78.1.0 (64-bit)

I removed all accounts (even Exchange/Outlook accounts), removed all calendars, disabled all add-ons ("TbSync" and "EAS for TbSync"), cleared all passwords and restarted again. When initially trying to set-up the email account it always tells me that the login to the server failed (wrong configuration, user or password). However, I am sure the credentials are fine (they work properly in other email programs).

The OAuth2 dialog never pops up, even if I provide on purpose an empty or a wrong password in the set-up dialog.

It would really be helpful if one could force an oauth2 login, or do a proper log-out to get a new login.

I have Linux Mint 19 based on Ubuntu 18.04 and still could not reproduce this problem. The OAuth2 webpage pops up each time. I cancelled and retried multiple times, and each time it popped up for each Gmail account I specified. What does Tbird's status bar show after you click Done? Mine says "sending login information for <gmail address>... then the OAuth2 webpage appears. It's so fast and immediate. How about you try a new profile.

As mentioned I have to create the account by continuing with Button "Manuell einrichten.." (something like: "manual setup") and later in the second dialog with Link "Erweiterte Einstellungen" (something like "extended settings"), as it never prompts me with the OAuth2 webpage.

After having done so I get an empty Inbox and the status bar shows:
"xxx@gmail.com: Verbunden mit imap.gmail.com..."
("connected with imap.gmail.com")

maybe it's also related to certificates.
As our company firewall intercepts certificates and replaces them by their own certificate I normally got a warning message to add the certificate to Thunderbird (Thunderbird 68).
This warning message however does also not pop-up in Thunderbird 78.

Attached image Certificate Warning

(In reply to alexandre.mayor from comment #21)

maybe it's also related to certificates.
As our company firewall intercepts certificates and replaces them by their own certificate I normally got a warning message to add the certificate to Thunderbird (Thunderbird 68).
This warning message however does also not pop-up in Thunderbird 78.

I would test Thunderbird outside of your company's network (restrictions) if company policies do not forbid it. I don't know what may have changed in v78 as regards the "add security exception" dialog not popping up, it may be a bug that the reported problem depends on, but I haven't yet found a bug report for it or any info regarding this behaviour. You could try manually adding the firewall's certificate(s) to Tbird's trusted certificates beforehand.

I unfortunately cannot circumvent these network restrictions and also I did not manage to add the certificate manually.
But I doubt that it is really a network/firewall issue, as Thunderbird 68 and Evolution work properly on the same machine.

I now realized that SMTP with OAuth2 works, when I am setting up the google account (with the above mentioned problems) and continue with manual settings.
Sending a new mail will prompt me with an OAuth2 web dialog, which succeeds and sending of the mail succeeds (it also reaches the receipient mail box), however of course it hangs eternally while trying to copy the message to the sent folder.

However, still, I am not able to provoke an OAuth2 web dialog for the IMAP part.

What happens when you click the Get Messages option for that account? Also, disable the option to copy sent messages to the Sent folder because Gmail's SMTP server automatically does it. If you can't circumvent your company's network restrictions, you can try Tbird 78 in a non-company computer connected to a different network, say your home PC. If any of the tests I and others have done are anything to go by, then we can definitely conclude that yours is not a bug with Thunderbird v78, but something to do with your network setup. I bet if you tested this outside of your network on a different PC, you won't be able to reproduce it. Have you tested a new v78 profile yet? I also suggest you engage your company's IT personnel to assist with technical troubleshooting and testing. For example, manually adding the firewall's certificate to Tbird's certificates store.

I can confirm that Thunderbird 78 works together with the same Gmail accounts on other machines (outside company network), on both Linux and Windows.
Of course it might be related to the network restrictions, however why would Thunderbird 78 stop working where other mail clients properly work?
I started several times completely from scratch by installing fresh versions of Thunderbird and removing the complete .thunderbird folder structure, to no avail.
And it never failed to setup the same accounts on the same machine with Thunderbird 68.

I fear our IT department will not be of much help in the domain of officially non-supported Linux environments.

Thus this a show stopper for me. I will have to stop wasting more time on this and will have to drop Thunderbird for the future.
If I can contribute with sending some log files or similar, I am willing to do so.

Thanks for your support anyway.

To answer your question: when pressing on "Get Messages" it will just show message:
"xxx@gmail.com: Verbunden mit imap.gmail.com..."
(connected with imap.gmail.com)

Summary: Gmail authentication window does not pop up when adding a new account on v78.0.1 → Gmail authentication window "add security exception" does not pop up when adding a new account on v78.0.1

kotysh can you still reproduce this?

Flags: needinfo?(kotysh)
Whiteboard: [closeme 2021-01-25]

Resolved per whiteboard

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(kotysh)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2021-01-25]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: