[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 15:27:08 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>>>> "AC" == Andrew Cohen <acohen@ust.hk> writes:
>>>>> "RW" == Roland Winkler <winkler@gnu.org> writes:
RW> On Tue, Aug 03 2021, Andrew Cohen wrote:
>>>>>>>> "RW" == Roland Winkler <winkler@gnu.org> writes:
[...]
>>> 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.
AC> No, this has nothing to do with oauth2---the automatic
AC> refreshing works just fine. Its the auth-store that is asking
AC> for a password to read the local plstore file (for some reason
AC> it caches the password for some relatively short length of time,
AC> but then decides it needs the password after a couple of hours).
And finally taking the two minutes to read the documentation tells me
that 'auth-source-cache-expiry is, by default, 2 hours:) Set this to nil
and these annoying requests for my password go away.
If anyone is interested, it seems that MS requires re-authentication of
the client every 6 months (this has nothing to do with emacs). This hit
me for the second time just after I sent my message yesterday that
everything was working great. So now I know the exact date (one year ago)
when I started using oauth2 with gnus :)
--
Andrew Cohen