[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: oauth2 support for Emacs email clients
From: |
Andrew Cohen |
Subject: |
Re: oauth2 support for Emacs email clients |
Date: |
Wed, 04 Aug 2021 08:56:25 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>>>> "RW" == Roland Winkler <winkler@gnu.org> writes:
RW> On Tue, Aug 03 2021, Andrew Cohen wrote:
>>>>>>> "RW" == Roland Winkler <winkler@gnu.org> writes:
>> But the truly hacky part---the information for refreshing the
>> token is stored in an auth-source file, where the "secret" is a
>> function that refreshes the token and returns the new credential.
>>
>> Once set up it works pretty well (although it asks for the
>> password for the auth-source file frequently---I haven't had time
>> to learn how auth-source decides when a password is required so
>> this should be easily fixable---its not frequent enough to really
>> bother me and my emacs time is very limited these days).
RW> As I said in another reply to this thread, I believe that the
RW> problem with frequent password requests is due to the fact that
RW> oauth2.el does not support `access_type=offline' upon
RW> authentication.
No, this has nothing to do with oauth2---the automatic refreshing works
just fine. Its the auth-store that is asking for a password to read the
local plstore file (for some reason it caches the password for some
relatively short length of time, but then decides it needs the password
after a couple of hours).
Just to be really clear, all of the oauth2 stuff works automatically and
just fine (including for smtp for sending email).
>> If you want to try it let me know and I'll try to walk you
>> through the setup.
RW> Thanks, I got this part working. But I realized that davmail
RW> mentioned elsewhere in this thread gives me, all in all, a
RW> smoother work flow.
>> diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
>>
>> diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
RW> I suggest to apply these steps to the emacs trunk, as one step
RW> towards better oauth2 support.
Yes, I have been waiting for a good time to update my local emacs
repository so I can do a clean push. Not much time for emacs these
days.
--
Re: oauth2 support for Emacs email clients, Gregory Heytings, 2021/08/03