[Akonadi] [Bug 354508] Support GMail's XOAUTH authentication method
https://bugs.kde.org/show_bug.cgi?id=354508 Daniel Vrátil changed: What|Removed |Added Severity|normal |wishlist Summary|“Password incorrect” error |Support GMail's XOAUTH |when trying to sign in to |authentication method |GMail account | Status|UNCONFIRMED |CONFIRMED Ever confirmed|0 |1 CC||dvra...@kde.org --- Comment #2 from Daniel Vrátil --- We have a working code that implements support for Google's XOAUTH mechanism, but it needs integrating into the IMAP resource. Definitely something I'm planning in the future. -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 354508] Support GMail's XOAUTH authentication method
https://bugs.kde.org/show_bug.cgi?id=354508 Daniel Vrátil changed: What|Removed |Added Resolution|--- |FIXED Status|CONFIRMED |RESOLVED Version Fixed In||5.5.0 Latest Commit||https://commits.kde.org/kde ||pim-runtime/ca4b3f0907b5cbf ||77a7f081bcd41f328ad066c54 --- Comment #3 from Daniel Vrátil --- Git commit ca4b3f0907b5cbf77a7f081bcd41f328ad066c54 by Daniel Vrátil. Committed on 08/01/2017 at 15:11. Pushed by dvratil into branch 'master'. IMAP: add support for native GMail OAuth authentication This change adds support for XOAUTH2 authentication method used by Gmail to the IMAP resource. The XOAUTH2 support is implemented in a custom SASL plugin. The token request/refresh is done via KGAPI. When user sets imap.gmail.com as IMAP server in the resource config dialog, the dialog automatically sets all the configuration to match the one of Gmail and selects XOAUTH2 as authentication method. The access and refresh tokens are stored in KWallet like a regular password, but a special PasswordRequesterInterface implementation is used to handle the tokens and pass the right data to KIMAP::LoginJob. With this change it's no longer necessary to have the "Allow less secure apps" option enabled in Google Account settings and it's no longer necessary to use app-specific password for accounts with two-step verification (2FA) enabled. The actual password is no longer stored in KWallet and has only be typed into Google Auth form once. FIXED-IN: 5.5.0 CHANGELOG: Implement native Gmail authentication into IMAP resource M +21 -1resources/imap/CMakeLists.txt A +1-0resources/imap/config.h.cmake A +141 -0resources/imap/gmailpasswordrequester.cpp [License: LGPL (v2+)] C +20 -23 resources/imap/gmailpasswordrequester.h [from: resources/imap/settingspasswordrequester.h - 051% similarity] M +13 -1resources/imap/imapresource.cpp A +67 -0resources/imap/passwordrequester.cpp [License: LGPL (v2+)] A +44 -0resources/imap/passwordrequester.h [License: LGPL (v2+)] M +1-0resources/imap/resourcestate.cpp A +24 -0resources/imap/saslplugin/CMakeLists.txt A +579 -0resources/imap/saslplugin/config.h [License: GENERATED FILE] * A +969 -0resources/imap/saslplugin/plugin_common.c [License: UNKNOWN] * A +221 -0resources/imap/saslplugin/plugin_common.h [License: UNKNOWN] * A +246 -0resources/imap/saslplugin/xoauth2plugin.c [License: LGPL (v2+)] A +53 -0resources/imap/saslplugin/xoauth2plugin_init.c [License: LGPL (v2+)] M +5-27 resources/imap/settings.cpp M +1-2resources/imap/settings.h M +24 -1resources/imap/settingspasswordrequester.cpp M +2-0resources/imap/settingspasswordrequester.h M +41 -6resources/imap/setupserver.cpp M +1-0resources/imap/setupserver.h A +32 -0resources/imap/utils.cpp [License: LGPL (v2+)] A +32 -0resources/imap/utils.h [License: LGPL (v2+)] M +8-2resources/imap/wizard/imapwizard.es The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page. https://commits.kde.org/kdepim-runtime/ca4b3f0907b5cbf77a7f081bcd41f328ad066c54 -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 354508] Support GMail's XOAUTH authentication method
https://bugs.kde.org/show_bug.cgi?id=354508 Daniel Vrátil changed: What|Removed |Added Severity|normal |wishlist Summary|“Password incorrect” error |Support GMail's XOAUTH |when trying to sign in to |authentication method |GMail account | Status|UNCONFIRMED |CONFIRMED Ever confirmed|0 |1 CC||dvra...@kde.org --- Comment #2 from Daniel Vrátil --- We have a working code that implements support for Google's XOAUTH mechanism, but it needs integrating into the IMAP resource. Definitely something I'm planning in the future. -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 354508] Support GMail's XOAUTH authentication method
https://bugs.kde.org/show_bug.cgi?id=354508 Daniel Vrátil changed: What|Removed |Added Resolution|--- |FIXED Status|CONFIRMED |RESOLVED Version Fixed In||5.5.0 Latest Commit||https://commits.kde.org/kde ||pim-runtime/ca4b3f0907b5cbf ||77a7f081bcd41f328ad066c54 --- Comment #3 from Daniel Vrátil --- Git commit ca4b3f0907b5cbf77a7f081bcd41f328ad066c54 by Daniel Vrátil. Committed on 08/01/2017 at 15:11. Pushed by dvratil into branch 'master'. IMAP: add support for native GMail OAuth authentication This change adds support for XOAUTH2 authentication method used by Gmail to the IMAP resource. The XOAUTH2 support is implemented in a custom SASL plugin. The token request/refresh is done via KGAPI. When user sets imap.gmail.com as IMAP server in the resource config dialog, the dialog automatically sets all the configuration to match the one of Gmail and selects XOAUTH2 as authentication method. The access and refresh tokens are stored in KWallet like a regular password, but a special PasswordRequesterInterface implementation is used to handle the tokens and pass the right data to KIMAP::LoginJob. With this change it's no longer necessary to have the "Allow less secure apps" option enabled in Google Account settings and it's no longer necessary to use app-specific password for accounts with two-step verification (2FA) enabled. The actual password is no longer stored in KWallet and has only be typed into Google Auth form once. FIXED-IN: 5.5.0 CHANGELOG: Implement native Gmail authentication into IMAP resource M +21 -1resources/imap/CMakeLists.txt A +1-0resources/imap/config.h.cmake A +141 -0resources/imap/gmailpasswordrequester.cpp [License: LGPL (v2+)] C +20 -23 resources/imap/gmailpasswordrequester.h [from: resources/imap/settingspasswordrequester.h - 051% similarity] M +13 -1resources/imap/imapresource.cpp A +67 -0resources/imap/passwordrequester.cpp [License: LGPL (v2+)] A +44 -0resources/imap/passwordrequester.h [License: LGPL (v2+)] M +1-0resources/imap/resourcestate.cpp A +24 -0resources/imap/saslplugin/CMakeLists.txt A +579 -0resources/imap/saslplugin/config.h [License: GENERATED FILE] * A +969 -0resources/imap/saslplugin/plugin_common.c [License: UNKNOWN] * A +221 -0resources/imap/saslplugin/plugin_common.h [License: UNKNOWN] * A +246 -0resources/imap/saslplugin/xoauth2plugin.c [License: LGPL (v2+)] A +53 -0resources/imap/saslplugin/xoauth2plugin_init.c [License: LGPL (v2+)] M +5-27 resources/imap/settings.cpp M +1-2resources/imap/settings.h M +24 -1resources/imap/settingspasswordrequester.cpp M +2-0resources/imap/settingspasswordrequester.h M +41 -6resources/imap/setupserver.cpp M +1-0resources/imap/setupserver.h A +32 -0resources/imap/utils.cpp [License: LGPL (v2+)] A +32 -0resources/imap/utils.h [License: LGPL (v2+)] M +8-2resources/imap/wizard/imapwizard.es The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page. https://commits.kde.org/kdepim-runtime/ca4b3f0907b5cbf77a7f081bcd41f328ad066c54 -- You are receiving this mail because: You are watching all bug changes.