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: Re: oauth2 support for Emacs email clients Date: Thu, 12 Aug 2021 13:59:13 -0500 Message-ID: <87y296ebge.fsf@gnu.org> References: <52589.36892.953561.24840@gargle.gargle.HOWL> <871r7aubp5.fsf@ucl.ac.uk> <87v94m1fkg.fsf@gnu.org> <87r1f3hvfg.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8624"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: emacs-devel@gnu.org, Eric S Fraga To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 12 21:01:00 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 1mEFwq-00026c-Ct for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Aug 2021 21:01:00 +0200 Original-Received: from localhost ([::1]:60586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEFwp-0006YV-9h for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Aug 2021 15:00:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEFvG-0005Xh-Ap for emacs-devel@gnu.org; Thu, 12 Aug 2021 14:59:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48026) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEFvF-0004L3-Ii; Thu, 12 Aug 2021 14:59:21 -0400 Original-Received: from [2600:1700:5650:f790::42] (port=58106 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEFv8-00012N-9r; Thu, 12 Aug 2021 14:59:14 -0400 In-Reply-To: (Richard Stallman's message of "Wed, 11 Aug 2021 22:15:16 -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:272363 Archived-At: On Wed, Aug 11 2021, Richard Stallman wrote: > > > Is DevMail free software? Does it implement that protocol with > > > free software? > > > GPL (http://davmail.sourceforge.net/licenses.html). > > That's good. (Which GPL versions does it allow?) davmail is GPL version 2 (no later version). > So, what part of the problem does DevMail solve? > Which cases is it usable in? It is a local gateway for Microsoft Exchange / Office365 so that a local IMAP / SMTP client such as gnus can communicate with the server. For this, davmail performs the OAuth2 authentication and authorization with the Microsoft server. davmail supports only Microsoft Exchange / Office365. Other systems such as gmail are not supported. > What part of the problem remains to be solved? I just confirmed: the Microsoft server requires that javascript is enabled in the browser. When I disable javascript in my firefox browser, it gives me the error message: Microsoft We can't sign you in JavaScript is required to sign in. Your browser either does not support JavaScript or it is being blocked. Enable JavaScript in your browser or use one which supports it. See https://login.microsoftonline.com/jsdisabled In oauth2.el, this problem is hidden in oauth2-request-authorization, where browse-url delegates the actual OAuth2 authentication to an (external) browser. If oauth2.el is used with Microsoft Exchange / Office365, it only works with a browser that supports javascript. (I not know about the implementation of OAuth2 for other systems such as Gmail.)