From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: authentification with url-retrieve
Date: Fri, 16 Jan 2009 10:21:47 +0100 [thread overview]
Message-ID: <874ozz1u8k.fsf@tux.homenetwork> (raw)
In-Reply-To: 874p002xrp.fsf@tux.homenetwork
Hi Ted and all,
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
> Hi Ted!
> Thank you very much for your precious indications.
> I will try that tomorrow and tell you how it worked.
>
> Ted Zlatanov <tzz@lifelogs.com> writes:
>
>> On Thu, 15 Jan 2009 10:39:19 +0100 Thierry Volpiatto <thierry.volpiatto@gmail.com> wrote:
>>
>> TV> Is some body knowing how to pass login and password to
>> TV> url-retrieve/synchronously when doing an https request?
>> TV> (without prompt)
>>
>> TV> url-auth.el is not very well documented.
>>
>> Through auth-source you can do:
>> (from the comments section, to be put into the manual eventually)
>>
>> ;; Easy setup:
>> ;; (require 'auth-source)
>> ;; (customize-variable 'auth-sources) ;; optional
>>
>> ;; now, whatever sources you've defined for password have to be available
>>
>> ;; if you want encrypted sources, which is strongly recommended, do
>> ;; (require 'epa-file)
>> ;; (epa-file-mode)
(epa-file-mode) seem to be deprecated, i have here (epa-file-enable).
>> ;; (setq epa-file-cache-passphrase-for-symmetric-encryption t) ; VERY important
>>
>> ;; before you put some data in ~/.authinfo.gpg (the default place)
>>
>> ;;; For url-auth authentication (HTTP/HTTPS), you need to use:
>>
>> ;;; machine yourmachine.com:80 port http login testuser password testpass
Here the line i use for https:
,----
| machine api.del.icio.us:443 port https login xxx password xxxx
`----
>> ;;; This will match any realm and authentication method (basic or
>> ;;; digest). If you want finer controls, explore the url-auth source
>> ;;; code and variables.
>>
>> I would recommend just this for auth-sources:
>>
>> (setq auth-sources ((:source "~/.authinfo.gpg" :host t :protocol t)))
,----
| (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
`----
and without encryption (don't encrypt .authinfo):
,----
| (setq auth-sources '((:source "~/.authinfo" :host t :protocol t)))
`----
>> Let me know if this works for you. The idea of auth-sources is so you
>> don't have to customize 20 places with user names and passwords, so it
>> works for things like Gnus passwords and Tramp as well.
i tried auth-sources and it worked fine. :)
Thank you.
I use actually wget and curl to retrieve https url, i think i will use
url-retrieve in next version of anything-delicious.el, even for deleting
and renaming bookmarks.
When i use encryption, (epa settings) i am prompt two times for
passphrase, is it normal?
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
next prev parent reply other threads:[~2009-01-16 9:21 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4912.1232012759.26697.help-gnu-emacs@gnu.org>
2009-01-15 17:34 ` authentification with url-retrieve Ted Zlatanov
2009-01-15 19:07 ` Thierry Volpiatto
2009-01-16 9:21 ` Thierry Volpiatto [this message]
[not found] ` <mailman.5022.1232098102.26697.help-gnu-emacs@gnu.org>
2009-01-16 19:06 ` Ted Zlatanov
2009-01-16 22:22 ` Thierry Volpiatto
[not found] ` <mailman.5088.1232144955.26697.help-gnu-emacs@gnu.org>
2009-01-20 18:34 ` Ted Zlatanov
2009-01-20 20:19 ` Thierry Volpiatto
[not found] ` <mailman.5394.1232483138.26697.help-gnu-emacs@gnu.org>
2009-01-21 21:52 ` Ted Zlatanov
2009-01-22 14:19 ` Thierry Volpiatto
[not found] ` <mailman.5513.1232634379.26697.help-gnu-emacs@gnu.org>
2009-01-26 15:31 ` Ted Zlatanov
2009-01-26 19:03 ` Thierry Volpiatto
2009-01-29 10:58 ` Thierry Volpiatto
[not found] ` <mailman.6157.1233227128.26697.help-gnu-emacs@gnu.org>
2009-01-29 20:10 ` Ted Zlatanov
2009-01-29 22:05 ` Thierry Volpiatto
[not found] ` <mailman.6196.1233267107.26697.help-gnu-emacs@gnu.org>
2009-01-30 15:39 ` Ted Zlatanov
2009-01-15 9:39 Thierry Volpiatto
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=874ozz1u8k.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=help-gnu-emacs@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.