From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: authentification with url-retrieve Date: Thu, 29 Jan 2009 14:10:13 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86wscdc1qy.fsf@lifelogs.com> References: <861vv4lbgs.fsf@lifelogs.com> <874p002xrp.fsf@tux.homenetwork> <86r633hxzh.fsf@lifelogs.com> <86hc3tg725.fsf@lifelogs.com> <86d4egba42.fsf@lifelogs.com> <861vuq3wzp.fsf__10403.8498750471$1232993607$gmane$org@lifelogs.com> <87eiypyjnv.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233261655 6495 80.91.229.12 (29 Jan 2009 20:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 20:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 29 21:42:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LSdi0-0003iA-6j for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 21:41:56 +0100 Original-Received: from localhost ([127.0.0.1]:52376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSdgi-0006fe-04 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 15:40:36 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newshub.sdsu.edu!newsfeed.freenet.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-X-Trace: news.albasani.net 6tTELs71NQULHzgpQrgBBOrjHywu0bdcAbbJ0lDnjRlD72OoEbJc5+jjv6jSCBtaRqeJWOze2eWhhjj0Lo0cQdVM1VNSjvZ0KhIZ3F57v4XuqOcE1jUgB4tOzq71expw Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Thu, 29 Jan 2009 20:08:43 +0000 (UTC) X-User-ID: OvWf7vZVFP9qCdtC+hscV6yw8PgtquGhl1RYr7dCa4E= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:1SBEYgIq6MXbs8Tj5Tob/rPlpag= sha1:JombAQgM0ps18mbBXvaBJqEzUv4= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: Gf97q2i9iLtq3A3tlWb3G22WI9RxFScoMmqJZhACic4= Original-Xref: news.stanford.edu gnu.emacs.help:166447 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61765 Archived-At: On Thu, 29 Jan 2009 11:58:37 +0100 Thierry Volpiatto 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