[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Potential bug/inconsistency in auth-source netrc vs plstore backends
From: |
Soham Gumaste |
Subject: |
Re: Potential bug/inconsistency in auth-source netrc vs plstore backends |
Date: |
Fri, 8 Nov 2024 12:00:51 -0600 |
> > Hello,
>
> Hi Soham,
Hello, thanks for your time.
> What about using a fixed port like ':port "token"'? A similar (mis-)use
> of :port is used by Tramp, where the port keeps the connection method,
> like ':port "ssh"'.
>
Well, I am trying to satisfy the auth-sources-search query in the
function nnimap-credentials in nnimap.el. That query requests the
:port in the spec, and for the query to succeed with the plstore
backend I need to exactly match the :port attribute in the plist saved
by oauth2.el. This would mean I would have to store every port the
user wants to use oauth creds with. Regardless, I still want to know
if the discrepancy between the netrc and plstore backend is
intentional or if I can patch it.
> This is documented in the auth manual, at the bottom of (info "(auth)
> Help for users") . A simiar solution for oauth2.el could be documented
> there as well.
>
My current workaround is to advise the nnimap-credentials with :around
mode and returning the oauth2 token when appropriate. I'd like to make
this more first class though. It could be done by simply tweaking the
plist file stored by oauth2.el but the aforementioned discrepancy is
the roadblock right now. I dare not try to edit anything in Gnus
itself.
> > Thanks
>
> Best regards, Michael.
Thanks
--
Soham Gumaste
sohamg2@gmail.com