Bug 4339 - [PATCH] IMAP OAUTH2
Status: NEW
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: Folders/IMAP (show other bugs)
Version: 3.17.6
Hardware: PC Linux
: P3 enhancement
Assignee: users
Depends on:
Reported: 2020-05-04 09:39 CEST by keur@xcf.berkeley.edu
Modified: 2020-12-28 19:50 CET (History)
3 users (show)

See Also:

patch file. apply with patch -p0 < out.patch (32.51 KB, patch)
2020-05-04 09:39 CEST, keur@xcf.berkeley.edu
no flags Details | Diff

Description keur@xcf.berkeley.edu 2020-05-04 09:39:22 CEST
Created attachment 2056 [details]
patch file. apply with patch -p0 < out.patch

My employer forced Google's OAUTH on me this Friday (and suggested I move to Thunderbird), so instead I added support to authenticate IMAP using OAUTH2, as described in https://tools.ietf.org/html/rfc6749. It is added as a compile time dependency since it adds two dependencies:

  (1) libjson-c
  (2) libcurl

The OAUTH2 logic is split into its own file because in a future patch I will it add support for SMTP.
Comment 1 Juerg Haefliger 2020-06-05 08:39:10 CEST
Google is phasing out 'Less Secure Apps' in the near future so without this claws becomes useless for gmail users.

Can we please make this a priority?
Comment 2 Dianne Skoll 2020-12-28 19:50:33 CET
Can I +1 this also?  We need OAUTH2 support for both IMAP and SMTP
AUTH to properly use Google.  Since my employer uses G-Suite and has
disabled "less secure applications", I've had to hack my way around
this problem, but it would be nice not to have to do that.

Note You need to log in before you can comment on or make changes to this bug.