From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandre Garreau Newsgroups: gmane.emacs.devel Subject: Re: oauth2 support for Emacs email clients Date: Wed, 11 Aug 2021 08:37:36 +0200 Message-ID: <1737512.6hWJkANdYg@galex-713.eu> References: <52589.36892.953561.24840@gargle.gargle.HOWL> <87o8a5e1it.fsf@randomsample> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8613"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 11 08:38:37 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDhsr-000236-PQ for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 08:38:37 +0200 Original-Received: from localhost ([::1]:39092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDhsp-0003r7-V1 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Aug 2021 02:38:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDhs2-00037V-M0 for emacs-devel@gnu.org; Wed, 11 Aug 2021 02:37:46 -0400 Original-Received: from portable.galex-713.eu ([2a00:5884:8305::1]:43890 helo=galex-713.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDhs0-0002xF-Pn for emacs-devel@gnu.org; Wed, 11 Aug 2021 02:37:46 -0400 Original-Received: from gal by galex-713.eu with local (Exim 4.92) (envelope-from ) id 1mDhrt-0003uT-02 for emacs-devel@gnu.org; Wed, 11 Aug 2021 08:37:37 +0200 In-Reply-To: <87o8a5e1it.fsf@randomsample> Received-SPF: pass client-ip=2a00:5884:8305::1; envelope-from=galex-713@galex-713.eu; helo=galex-713.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272312 Archived-At: Le mardi 10 ao=C3=BBt 2021, 17:56:58 CEST David Engster a =C3=A9crit : > >> Well, you could just use Thunderbird's. It's all right here: > >>=20 > >> https://github.com/mozilla/releases-comm-central/blob/master/mailnews > >> /base/src/OAuth2Providers.jsm > >>=20 > >> You shouldn't though, because that could get you in trouble. > >>=20 > >> While all this stuff is essentially security theatre, good luck > >> explaining that to your IT security department... > >=20 > > I explained to my IT administrator that I'd like to use Emacs for > > email. Others should too. There's no shame in it. :-) >=20 > That's not what I meant. Your administrators might think that they have > only allowed Thunderbird to access IMAP, while in reality they have > whitelisted everything, because you can trivially copy the client-ID and > -secret from Thunderbird's source. That's what I mean with "security > theatre" - everyone's just sticking to the script. If there is a trivial, secure and documented way of =E2=80=9Cwhitelisting= =E2=80=9D some=20 app from network, it means they would have a way to verify the secret,=20 hence it would be somewhat trivial to get in not from sources but from the= =20 binaries of many programs as well, I believe u.u