emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Potential bug/inconsistency in auth-source netrc vs plstore backends


From: Michael Albinus
Subject: Re: Potential bug/inconsistency in auth-source netrc vs plstore backends
Date: Fri, 08 Nov 2024 09:40:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Soham Gumaste <sohamg2@gmail.com> writes:

> Hello,

Hi Soham,

> 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.

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"'.

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.

> Thanks

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]