Login prompt for gmail account with App Password causes "Login problem" error
Bug Summary
I have a gmail account which is set up with 2FA, so I have to use an App password to log in to Geary. For more information: https://support.google.com/accounts/answer/185833?hl=en
I constantly get a login prompt when I open Geary, resulting in a "Login problem" error if I dismiss it, even though I am clearly logged into my account, and Geary continues to receive new emails.
Your installation
Pasted information:
Geary version: 40.0
Geary revision: tags/gnome-40.0-0-ge561775c-dirty
GTK version: 3.24.34
GLib version: 2.74.0
WebKitGTK version: 2.38.0
Desktop environment: KDE
Distribution name: Manjaro Linux
Distribution release: Unknown
Installation prefix: /usr
- Geary version: 40.0
- Installation method: Manjaro Official Repositories
- Desktop environment: KDE
- Operating system and version: Manjaro 22.0.0
- Email provider: Gmail
Steps to reproduce
- Create an app password for Geary via google account settings
- Add your gmail account to Geary using that App password
- Restart computer
- Open Geary
What happened?
Geary shows a login prompt for the account titled "Geary requires your email password to continue" (with the password already filled in). It should not do this as the password is not meant to be entered more than once. If I click "Authenticate", the error box disappears and reappears again after a moment. If I click "Cancel", the box disappears, however, I then get an error bar at the top of Geary saying:
Login problem
An account has reported an incorrect login or password.
Usually apart from this inconvenience, everything continues to work correctly. Geary continues to be able to send or receive emails for the account.
What did you expect to happen?
No password prompt for the account I logged into using an App Password.
Relevant logs and/or screenshots
From what I could tell this is the relevant part of the log:
[deb] 15:03:57.0914 Geary.Imap: [account_06] [imap] [connecting] GearyImapClientSession: Connected to imap.gmail.com:993
[deb] 15:03:57.0914 Geary.Imap: [account_06] [imap] [connecting] GearyImapClientSession: Connected to imap.gmail.com:993
[deb] 15:03:57.0920 Geary.Imap: [account_06] [imap] [connecting] GearyImapClientSession: Server greeting: Gimap ready for requests from 2a02:c7c:3705:aa00:5a0:d8b7:e760:f203 bj14mb2279840wrb
[deb] 15:03:57.0920 Geary.Imap: [account_06] [imap] [connecting] GearyImapClientSession: Server greeting: Gimap ready for requests from 2a02:c7c:3705:aa00:5a0:d8b7:e760:f203 b4mb12243329wri
[deb] 15:03:57.0938 Geary.Imap: [account_06] [imap] [noauth] GearyImapClientSession: capability set capabilities to: #1: NAMESPACE IMAP4rev1 X-GM-EXT-1 XYZZY "AUTH=OAUTHBEARER" "AUTH=PLAIN" "AUTH=XOAUTH" "AUTH=PLAIN-CLIENTTOKEN" "AUTH=XOAUTH2" UNSELECT CAPABILITY SASL-IR CHILDREN XLIST QUOTA ID IDLE
[deb] 15:03:57.0938 Geary.Imap: [account_06] [imap] [noauth] GearyImapClientSession: capability set capabilities to: #1: NAMESPACE IMAP4rev1 X-GM-EXT-1 XYZZY "AUTH=OAUTHBEARER" "AUTH=PLAIN" "AUTH=XOAUTH" "AUTH=PLAIN-CLIENTTOKEN" "AUTH=XOAUTH2" UNSELECT CAPABILITY SASL-IR CHILDREN XLIST QUOTA ID IDLE
[deb] 15:03:58.0236 Geary.Imap: [account_06] [imap] [authorizing] GearyImapClientSession: LOGIN failed: a002 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
[deb] 15:03:58.0237 Geary.Imap: [account_06] [imap] [noauth] GearyImapClientSession: Disconnected from imap.gmail.com:993
[deb] 15:03:58.0238 Geary.Imap: [account_06] [imap] GearyImapClientService: Auth error adding new session to the pool: Bad credentials: a002 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure):
[deb] 15:03:58.0239 Geary.Imap: [account_06] [imap] GearyImapClientService: Status changed to: authentication-failed
[deb] 15:03:58.0466 Geary.Imap: [account_06] [imap] [authorizing] GearyImapClientSession: LOGIN failed: a002 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
[deb] 15:03:58.0499 Geary.Imap: [account_06] [imap] [noauth] GearyImapClientSession: Disconnected from imap.gmail.com:993
[deb] 15:03:58.0499 Geary.Imap: [account_06] [imap] GearyImapClientService: Auth error adding new session to the pool: Bad credentials: a002 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure):
[deb] 15:03:58.0499 Geary.Imap: [account_06] [imap] GearyImapClientService: Closing the pool, disconnecting 0 sessions
[deb] 15:03:59.0582 Geary.Imap: [account_06] [imap] GearyImapClientService: Closing the pool, disconnecting 0 sessions