[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Potential bug/inconsistency in auth-source netrc vs plstore backends
From: |
Soham Gumaste |
Subject: |
Potential bug/inconsistency in auth-source netrc vs plstore backends |
Date: |
Thu, 7 Nov 2024 14:34:45 -0600 |
Hello,
I am trying to patch the `oauth2.el` elpa library to better integrate
with the native auth-sources system so that functions like nnimap and
smtpmail can use it transparently.
I noticed the following inconsistency while playing with this: As
shown by [1], the netrc backend does not require :host, :user or :port
as required keys in matched results, however, the plstore backend
requires :host, :login: :port and :secret.
This is causing an issue for me as I would like to patch the oauth2.el
library to store the access token as a secret, but without any port
associated with it. The oauth2.el library already uses plstore and it
is the more convenient backend to use.
Please let me know if this is indeed a bug and the possible direction
for a bugfix patch if that is the case.
Thanks
[1]: https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/auth-source.el#n1274
[2]: https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/auth-source.el#n2112
--
Soham Gumaste
sohamg2@gmail.com
- Potential bug/inconsistency in auth-source netrc vs plstore backends,
Soham Gumaste <=