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: Tue, 10 Aug 2021 09:39:25 -0500 Message-ID: <8735rhfjoi.fsf@gnu.org> References: <52589.36892.953561.24840@gargle.gargle.HOWL> <39093.96315.985670.24841@gargle.gargle.HOWL> <87o8acpwqe.fsf@ust.hk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28448"; 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 To: Andrew Cohen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 10 16:40:20 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 1mDSvU-0007Dm-Fx for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 16:40:20 +0200 Original-Received: from localhost ([::1]:54466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDSvS-00033K-TF for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Aug 2021 10:40:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDSud-0002JQ-07 for emacs-devel@gnu.org; Tue, 10 Aug 2021 10:39:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51570) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDSuc-00068C-2m; Tue, 10 Aug 2021 10:39:26 -0400 Original-Received: from [2600:1700:5650:f790::42] (port=44074 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDSub-0004Ou-UF; Tue, 10 Aug 2021 10:39:26 -0400 In-Reply-To: <87o8acpwqe.fsf@ust.hk> (Andrew Cohen's message of "Thu, 05 Aug 2021 08:21:29 +0800") 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:272280 Archived-At: On Thu, Aug 05 2021, Andrew Cohen wrote: > I don't think this is quite right. Emacs can use the refresh token to > obtain the access token just fine (this is what I have been doing for > the past year). I just want to confirm I have read your posts with great interest, thank you. I am still in the process of digesting them. These topics (including emacs tools like plstore / auth-store / auth-source) have not been my area of expertise. So I am still trying to understand better how to put these things together so that I get what I want / need. In the meanwhile one question: With your setup, what happens if you need to restart emacs? Are you storing the oauth2 tokens on disk so that you need not re-authenticate (as long as the tokens themselves remain valid, which is 30 days for my organizations)? Thanks again! Roland