From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Fitzsimmons Newsgroups: gmane.emacs.devel Subject: Re: oauth2 support for Emacs email clients Date: Mon, 09 Aug 2021 22:01:56 -0400 Message-ID: References: <52589.36892.953561.24840@gargle.gargle.HOWL> <87pmuofpai.fsf@gnu.org> <87sfzk71xw.fsf@randomsample> <87k0kw6liw.fsf@randomsample> <87fsvk6i5e.fsf@randomsample> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16608"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Roland Winkler , Richard Stallman To: David Engster Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 10 04:02:39 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 1mDH6E-00047H-Ve for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 04:02:39 +0200 Original-Received: from localhost ([::1]:38522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDH6D-0006Kf-Ia for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Aug 2021 22:02:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDH5e-0005eu-P1 for emacs-devel@gnu.org; Mon, 09 Aug 2021 22:02:02 -0400 Original-Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:34304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDH5c-0000gp-T5 for emacs-devel@gnu.org; Mon, 09 Aug 2021 22:02:02 -0400 Original-Received: by mail-qv1-xf34.google.com with SMTP id m12so10158116qvt.1 for ; Mon, 09 Aug 2021 19:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fitzsim-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yDpZkhPUTvQPfz7laSI+dyMUTVIe71v7qbN05OvyoZk=; b=QBr3qM/FDpTnJUhVKX7GMOjUpGdrIaACxnqU3C/c19X/6F8zOe3MfQ86fIbF9+lTpO 4Lrsuej79CcNS31/eN69EUH3p8JTdV1FCmGxeCfRkwoimzKZ/JY7NASUvMKqWHIFIuWA 1XCMomBc0FsLze5mFwDIVsPeymYatyC1YlLBtZfn5ua/lfp2ZoN0Q3tIJjP/adscILkU FsdvqT6GGMI74drwahJ2lHh0VkPdo0havzzEux/FlNqjK/QJOYl4WABBmDdmVDoIFjpg FTYhFW3J3t+sSm0uGglVYM5e6aJioYMVKI+bMcI4B3qxeNiZ8IBdQillneFo/KEwLViJ X/Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=yDpZkhPUTvQPfz7laSI+dyMUTVIe71v7qbN05OvyoZk=; b=DFPSekw5PGgfEaAXvPigcDSsG26+rl2M4BjmLD2A743CPruVDREakr/iACGhEXnKCa j/nQeGC5W6bVlU5VwYiin5VvPzNwMlQrxtM4XIG1SEZw6XfcD5v063IwRroLn/v61Kym ugYzK9AWwh0gzUQ5qMGk0UizdIE+pUslRsRc859wOhimxVxGacsEnzdKBc3oZWjPx/jG 4VQjwbjGgvZy3UTY3l+rIfzKqLlDlc6H85lQfJwQA0MXKTB98ftqcO2rXUkSctLvVCCl z/DS8OhUPRcpRNIqgaeMEgMKcI1fhRxVYmiizH9l4RQghpnIGpwC5wCrBPhLzFQYxKv0 skpg== X-Gm-Message-State: AOAM532zlW+BbBwSwkXy4oXLOionrak0nBPka97nD/LjLKR4q4V1GTzT q0PXWTWEWFW989TGs6o9NMRrpCsGDfI6Yf9a X-Google-Smtp-Source: ABdhPJwFN1TpIZBHx4pt3eLl6ZoVAYeqAu7zZ9Q9BShBKVyRzYtmZ0uWCPgY/VGTfnSZdwgTS9vHBg== X-Received: by 2002:a05:6214:10e6:: with SMTP id q6mr27088349qvt.11.1628560918949; Mon, 09 Aug 2021 19:01:58 -0700 (PDT) Original-Received: from localhost.localdomain (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by smtp.gmail.com with ESMTPSA id v9sm6807590qtq.77.2021.08.09.19.01.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Aug 2021 19:01:57 -0700 (PDT) In-Reply-To: <87fsvk6i5e.fsf@randomsample> (David Engster's message of "Sun, 08 Aug 2021 18:00:29 +0200") Received-SPF: none client-ip=2607:f8b0:4864:20::f34; envelope-from=fitzsim@fitzsim.org; helo=mail-qv1-xf34.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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:272251 Archived-At: David Engster writes: >>> As I've written: Public client applications are only allowed to access >>> web APIs, so no IMAP/SMTP. >> >> OK; I wasn't sure if by "web APIs" you meant only "OAuth-related web >> APIs". Thanks for confirming. >> >> I wonder why Microsoft does not allow public client applications to use >> IMAP/SMTP. > > Actually, after I've looked a bit into this, I think I'm mistaken and it > is possible to register a public client with IMAP access. OK, thanks for checking. That's encouraging. >> Maybe the FSF could request that Emacs be registered as a public client >> application and also be allowed to use IMAP/SMTP. That would solve the >> "embedding a secret in Free Software" part of the OAuth registration >> issue, at least for Microsoft servers. > > In a company setting based on Microsoft services, the problem is not > really so much to get your client registered, but to get your IT > department to enable IMAP and to explicitly allow your application > access to your mailboxes. It depends on the organization, I guess. My organization has IMAP enabled. To use Thunderbird, I attempted to authenticate IMAP using OAuth. The administrator received a request for access from "Thunderbird" (identified by Thunderbird's Microsoft-assigned globally unique identifier (GUID)), which they granted, after which I could use Thunderbird with IMAP. I haven't tried yet, but I suspect using Emacs in my organization would be harder because, what GUID would I use? I think it's worth the FSF getting such a globally unique identifier assigned for GNU Emacs, so that the permission-granting workflow would be as easy for Emacs as it is for Thunderbird. Thomas