[kmail2] [Bug 524357] New: kmail fails to authenticate gmail via oauth2

bwlfoo <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=524357

            Bug ID: 524357
           Summary: kmail fails to authenticate gmail via oauth2
    Classification: Applications
           Product: kmail2
      Version First 6.4.3
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION

kmail fails to authenticate gmail account using oauth2

STEPS TO REPRODUCE
1. stop akonadi, clear configuration, restart akonadi
2. Add new gmail account to kmail
3. paste password provided by google App Password generator (16 characters)

OBSERVED RESULT
account stays offline even when restarted
Terminal output includes . . . 

org.kde.pim.google: Trying to read password for "[email protected]"
org.kde.kgapi: Bad request
QUrl("https://accounts.google.com/o/oauth2/token?prettyPrint=false") , Google
replied ' "{\n  \"error\": \"invalid_grant\",\n  \"error_description\": \"Bad
Request\"\n}" '
qt.network.http2: stream 1 finished with error: "Host requires authentication"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.

EXPECTED RESULT
gmail account is authorised and able to send and receive email

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 16.0
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.12.0-160000.27-default (64-bit)

ADDITIONAL INFORMATION
more output available if required

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.