From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: oauth2 support for Emacs email clients Date: Tue, 3 Aug 2021 00:00:29 -0500 Message-ID: <52589.36892.953561.24840@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15773"; 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 Tue Aug 03 07:01:38 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 1mAmYa-0003tY-Or for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Aug 2021 07:01:36 +0200 Original-Received: from localhost ([::1]:44400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAmYZ-0005c9-At for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Aug 2021 01:01:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAmXn-0004vY-DU for emacs-devel@gnu.org; Tue, 03 Aug 2021 01:00:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40100) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAmXn-0006y1-59 for emacs-devel@gnu.org; Tue, 03 Aug 2021 01:00:47 -0400 Original-Received: from [2600:1700:5650:f790::42] (port=48190 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAmXm-0001F9-8a for emacs-devel@gnu.org; Tue, 03 Aug 2021 01:00:46 -0400 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:271946 Archived-At: A year ago, there was a long thread "Making GNUS continue to work with Gmail". Has there been any progress along these lines? I am asking because my institution uses MS Outlook. Recently, they have disabled simple password-based authentication in favor of oauth2. 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. It is my understanding, that support of oauth2 within the Emacs ecosystem is rather incomplete. Say, oauth2.el advises url-http-handle-authentication. More importantly, email clients need to regularly refresh the oauth2 access token. I believe Emacs is not yet suited for this. All this brings me to the limits of my understanding of both the oauth2 protocol and the relevant parts of the emacs code base (I believe this code resides largely in ./lisp/url.) Has anybody else been looking into this? Before I spent more time on this, first I'd like to make sure that I am not reinventing the wheel or missing something else. Thanks, Roland