From: Ted Zlatanov <tzz@lifelogs.com>
To: "Bruno Félix Rezende Ribeiro" <oitofelix@gnu.org>
Cc: Rudolf Adrian Kral <adriankral@gmail.com>,
GNU Emacs Developers <emacs-devel@gnu.org>
Subject: Re: [PATCH] Enable passwords to be functions in erc-services
Date: Thu, 11 Jun 2020 19:21:18 +0000 [thread overview]
Message-ID: <tuzh9zo1.fsf@lifelogs.com> (raw)
In-Reply-To: <87o8s1gug1.fsf@gnu.org> (Amin Bandali's message of "Thu, 09 Apr 2020 00:21:50 -0400")
On Thu, 09 Apr 2020 00:21:50 -0400 Amin Bandali <bandali@gnu.org> wrote:
AB> +1. Rudolf, what do you think about sending a new version with examples
AB> using the auth-source library, and maybe even the newer auth-source-pass
AB> as well?
erc.el uses auth-source.el so I agree this makes sense to add to
erc-services.el. Compared to Rudolf's proposed patch, I think this will
have the advantage of less code and easier integration for the user.
Maybe something like this (in the authinfo+.json format) would work for
the users?
machine MyService login myuser password mysecret
machine freenode login user1 password secret1
machine freenode login user2 password secret2
[
{ "machine": "MyService", "login": "myuser", "password": "mysecret" },
{ "machine": "freenode", "login": "user1", "password": "secret1" },
{ "machine": "freenode", "login": "user2", "password": "secret2" }
]
so then you'd just call:
(auth-source-search :host "MyService" :user "myuser")
auth-source-pass.el provides a backend for auth-source.el, so it will be
usable like all the other storage backends (.gpg files, plain files,
JSON files, Secrets API, etc). I don't think any extra work will be
required on the ERC side or the user side.
Ted
prev parent reply other threads:[~2020-06-11 19:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 21:49 [PATCH] Enable passwords to be functions in erc-services Rudolf Adrian Kral
2020-04-08 14:21 ` Bruno Félix Rezende Ribeiro
2020-04-09 4:21 ` Amin Bandali
2020-06-11 19:21 ` Ted Zlatanov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tuzh9zo1.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=adriankral@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=oitofelix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.