From: Felipe Contreras <felipe.contreras@gmail.com>
To: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>,
git@vger.kernel.org
Subject: RE: [RFC] imap-send: support oauth2
Date: Fri, 04 Jun 2021 08:51:47 -0500 [thread overview]
Message-ID: <60ba2ff3cff23_f62a62081b@natae.notmuch> (raw)
In-Reply-To: <ca1da892-f8ad-d878-a516-de5b08a99698@suse.com>
Nicolas Morey-Chaisemartin wrote:
> 2FA/OAuth2 becoming a more and more regular thing these days (and a lot of SUSE devs being recently impacted by it), I've thrown together a quick patch
> to allow imap-send to support it.
> This uses https://github.com/jeffmahoney/oauth2-clientd. It can be used with Outlook365 or Gmail. It creates a file with a token to be used to authenticate.
> As libcurl supports this type of authentication, it is quite easy from there.
While trying to implement this is nice, it takes way more effort just to
get a client id and secret than it takes to setup an app password.
Plus I think this is abusing Google Cloud Platform. The point is to
register an application once, and that application can have thousands of
users, not thousands of users registering thousands of applications each
used by a single user.
If you have an email service with OAuth2 authentication that doesn't
require a client secret, then yeah; OAuth2 makes sense. I am not aware
of any popular one though.
Cheers.
--
Felipe Contreras
prev parent reply other threads:[~2021-06-04 13:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-04 7:23 [RFC] imap-send: support oauth2 Nicolas Morey-Chaisemartin
2021-06-04 13:51 ` Felipe Contreras [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60ba2ff3cff23_f62a62081b@natae.notmuch \
--to=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=nmoreychaisemartin@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).