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: Thierry Volpiatto
Subject: Re: authentification with url-retrieve
Date: Thu, 29 Jan 2009 11:58:37 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

Hi Ted!
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> Ted Zlatanov <tzz@lifelogs.com> writes:
>
>> On Thu, 22 Jan 2009 15:19:36 +0100 Thierry Volpiatto 
>> <thierry.volpiatto@gmail.com> wrote: 
>>
>> TV> ,----
>> TV> | auth-source-user-or-password: get login for news.gmane.org (nntp)
>> TV> | /home/thierry/.authi: 0% (0/724)
>> TV> | /home/thierry/.authi: 100% (724/724)
>> TV> | auth-source-user-or-password: get password for news.gmane.org (nntp)
>> TV> | /home/thierry/.authi: 0% (0/724)
>> TV> | /home/thierry/.authi: 100% (724/724)
>>
>> Ah, I see it.  It's parsing that file twice, once to get the login name
>> and again to get the password.
>>
>> The current auth-source API didn't allow me to batch this operation, so
>> I had to modify the API.  You'll have to get the latest Gnus from CVS
>> (auth-source.el plus the files that use the new API, including
>> nntp.el).  The changes will make their way into Emacs CVS as well, but I
>> don't know when.
>>
>> I tried it and it works for me, so please try it out and let me know if
>> you find any problems.
>
> Ok i will pull last Gnus as soon as possible.
> Thank you.

I have installed "No Gnus v0.11" and it seem to work fine.
My emacs version is:

,----
| GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
|  of 2009-01-26 on tux
`----

I have also enabled gpg-agent to avoid beeing prompted many time.
I start it with keychain.
(epa should have a time-out to cache passphrase, but i didn't find it)

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

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

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

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

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





reply via email to

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