help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: authentification with url-retrieve


From: Ted Zlatanov
Subject: Re: authentification with url-retrieve
Date: Thu, 29 Jan 2009 14:10:13 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

On Thu, 29 Jan 2009 11:58:37 +0100 Thierry Volpiatto 
<thierry.volpiatto@gmail.com> wrote: 

TV> (epa should have a time-out to cache passphrase, but i didn't find it)

That's actually in a patch I will submit to Emacs once it's out of
pretest and the CVS tree is open.  You can find it in the emacs-devel
archives if you want it sooner, let me know if you need a specific
pointer.

TV> In my config, i use variables that are not supported by the authinfo
TV> scheme (e.g emms-lastfm...) so i fetch the login/password like that:
TV> (don't call gpg one time for user and one time for password)

TV> ,----
TV> | (setq emms-lastfm-user-pwd
TV> |       (auth-source-user-or-password  '("login" "password")
TV> |                                      "ws.audioscrobbler.com:80"
TV> |                                      "http"))
TV> | 
TV> | (setq emms-lastfm-username (car emms-lastfm-user-pwd))
TV> | (setq emms-lastfm-password (cadr emms-lastfm-user-pwd))
TV> `----

TV> The same for anything-delicious.el that use actually curl and wget to
TV> post.

TV> So now when i start emacs, i am prompted only once for gpg
TV> passphrase. :)

Yeah, that's nice!  It's exactly why I wrote it, and I want auth-source
to be hooked into every package that can use it.  So if you want, tell
the emms-* maintainer about auth-source and maybe they will support it
so you don't have to do this kind of specific customization.  I can help
with a patch if necessary.

Thanks
Ted


reply via email to

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