From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: oauth2 support for Emacs email clients Date: Tue, 03 Aug 2021 19:38:26 -0400 Message-ID: References: <52589.36892.953561.24840@gargle.gargle.HOWL> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Roland Winkler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 04 01:39:56 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 1mB40p-0000QO-U3 for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 01:39:55 +0200 Original-Received: from localhost ([::1]:49704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB40n-0006JX-LM for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Aug 2021 19:39:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB3zO-0005aH-St for emacs-devel@gnu.org; Tue, 03 Aug 2021 19:38:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41156) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB3zO-0003VL-N6 for emacs-devel@gnu.org; Tue, 03 Aug 2021 19:38:26 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mB3zO-0001a6-0V; Tue, 03 Aug 2021 19:38:26 -0400 In-Reply-To: <52589.36892.953561.24840@gargle.gargle.HOWL> (winkler@gnu.org) 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:272012 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Now, using oauth2.el from GNU Elpa, I have got the basics > (authentication and authorization) working. This required some ugly > configuration within MS Azure. But I am still some distance away > from a smooth workflow, say, using Gnus. Can you tell us more details of (1) what you did to make this work, and (2) what problems remain? (1) will help people now, and (2) will show us what to work on. > Say, oauth2.el advises url-http-handle-authentication. That is one thing we should change. url-http-handle-authentication should provide whatever hooks are needed so oauth2.el can do its job without needing to do advice. That change will make our code cleaner, but won't directly affect what it can do and what it can't do. > More > importantly, email clients need to regularly refresh the oauth2 > access token. I believe Emacs is not yet suited for this. Can you tell us any more about what "regularly" concretely means? For instance, is this based on elapsed time? Actions carried out? It doesn't sound like something that will be difficult. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)