unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Potential bug/inconsistency in auth-source netrc vs plstore backends
@ 2024-11-07 20:34 Soham Gumaste
  2024-11-07 20:43 ` Soham Gumaste
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Soham Gumaste @ 2024-11-07 20:34 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-11-10 23:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-07 20:34 Potential bug/inconsistency in auth-source netrc vs plstore backends Soham Gumaste
2024-11-07 20:43 ` Soham Gumaste
2024-11-07 21:34 ` Xiyue Deng
2024-11-08  2:28   ` Soham Gumaste
2024-11-08  8:40 ` Michael Albinus
2024-11-08 18:00   ` Soham Gumaste
2024-11-08 22:11     ` Xiyue Deng
2024-11-10 18:29       ` Soham Gumaste
2024-11-10 23:58         ` Xiyue Deng

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).