Open Bug 1911443 Opened 2 years ago Updated 4 months ago

Multiple calendar authentication / integration workflow issues after Google password is changed

Categories

(Calendar :: General, defect)

Thunderbird 128
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: 52qtuqm9, Unassigned)

References

(Blocks 1 open bug)

Details

After I changed my Google password, Thunderbird's calendar module kept prompting me for the password for my Google account.

This kept happening even after I removed the Provider for Google Calendar extension and said that I wanted to remove all calendars when doing so.

It appears one of the calendars was NOT removed, because I don't have a local calendar in the calendar module, I only had Google calendars, and TB wouldn't let the last calendar be removed. So that's why I kept getting prompted for my password even after removing the Provider for Google Calendar extension and trying to remove all the calendars.

To fix this, I had to:

  1. Add a new local calendar so TB would let me remove the Google calendar.
  2. Remove the Google calendar.
  3. Remove the Gmail account.
  4. Add back the Gmail account.
  5. When prompted to do so after adding back the Gmail account, reconnect my calendar (I can't find any way to get to the screen which allows you to do one-click adding of Google calendars except immediately after adding the Gmail account; if there's a way to do it, it's cleverly hidden, and if not, there should be!).
  6. Remove the calendar added in step 1.

There are a whole slew of UX issues here.

Below is the original description I entered, but I've replaced it with the updated description above after going through all the troubleshooting shown in the comments below.

I have my Gmail account configured in Thunderbird. After I change my Google password, instead of Thunderbird prompting me to reauthenticate to Google using the Google authentication window it should be using, it pops up the standard "Authentication Required - Mozilla Thunderbird" username/password window with the "Use Password Manager to remember this password." checkbox, but entering my Google password in this pop-up does not work, it just keeps prompting me over and over. I can't figure out how to get it to reauthenticate properly to Google. Quitting and restarting Thunderbird did not help.

Summary: Thunderbird can't reauthenticate to Gmail after Google password is changed → Thunderbird can't reauthenticate to Google calendar after Google password is changed

Update: actually, it looks like it reauthenticated successfully to my email. It appears that the thing that is failing to reauthenticate correctly is the calendar integration.

Summary: Thunderbird can't reauthenticate to Google calendar after Google password is changed → Thunderbird can't reauthenticate to Gmail after Google password is changed

Actually, another update: I disabled Provider for Google Calendar and it's still prompting me repeatedly for my Google password, so I don't think this is limited to just calendar, although I believe both gmail and calendar have this problem.

OK, this is bizarre.

I've removed the Provider for Google Calendar extension. I've confirmed that Thunderbird is successfully authenticated to my Gmail account, because I am able to delete messages in Thunderbird and the deletions show up on gmail.com. And yet Thunderbird is still prmpting me "https://www.google.com is requesting your username and password," i.e., it's still displaying the pop-up password prompt window I mentioned above when I restart Thunderbird.

It may be relevant that I have 2FA (YubiKey) configured on my account. I wonder if Google is telling Thunderbird that I need to reauthenticate with my security key and TB doesn't know how to handle that. But if that's the case then I don't understand why I am able to delete messages in TB and have the deletions show up on gmail.com; this implies that TB is successfully authenticated.

This is bizarre.

I can remove the Google account from TB entirely and put it back, but before I do that, is there any additional troubleshooting / log gathering / whatever it would be useful for me to capture to help track this down?

OK, I do think it's the calendar module that's causing the problem.

I see this message in the error console right before I get prompted for my username and password:

19:48:48.616 [calCachedCalendar] replay action failed: <unknown>, uri=https://www.google.com/calendar/dav/jikamens@gmail.com/events, result=2147500037, operation=[xpconnect wrapped calIOperation]

However, that calendar is disabled in the calendar module, so why is it trying to authenticate to it?

I think the calendar was disabled automatically because authentication is failing. I.e., when it says the calendar is disabled, I don't think that means I disabled it; that means it tried to authenticate to it but couldn't so it turned it off.

Normally, I would fix this by removing the calendar and setting up again to force reauthentication. But I can't! The "Unsubscribe calendar..." menu command in the right-click menu for this calendar is greyed out and I can't select it. Here's what I had to do:

  1. Add a new local calendar (the reason why "Unsubscribe calendar..." was greyed out is because the calendar module won't let you remove your only calendar).
  2. Remove the Google calendar.
  3. Remove the Gmail account.
  4. Add back the Gmail account.
  5. When prompted to do so after adding back the Gmail account, reconnect my calendar (I can't find any way to get to the screen which allows you to do one-click adding of Google calendars except immediately after adding the Gmail account; if there's a way to do it, it's cleverly hidden, and if not, there should be!).
  6. Remove the calendar added in step 1.
Summary: Thunderbird can't reauthenticate to Gmail after Google password is changed → Multiple calendar authentication / integration workflow issues after Google password is changed
Blocks: tb128found
Component: Account Manager → General
Product: MailNews Core → Calendar

QA can you reproduce?

Flags: needinfo?(vlucaci)

Hello,
I tested this issue on macSonoma 15.4.7 for TB 152.0.1(20260630165458) and did not manage to reproduce it.
I configured a Gmail account that had multiple calendars associated. I then changed my gmail password, reopened TB and completed the reauthentication process. The gmail account continued to synchronise successfully and the associated calendars were accessible. I restarted Thunderbird multiple times and was not prompted for credentials. Calendars worked as expected and I did not encounter any issues removing or re-adding the Google account or its associated calendars.

Flags: needinfo?(vlucaci)
You need to log in before you can comment on or make changes to this bug.