Open FrancescElies opened 7 years ago
Problem: es-mode does not read .authinfo but a es-mode block in org-mode does.
I believe this may be due to es-mode using a different http request library than org-mode does, but I can look into this!
Thanks for your answer, by the way I was gladly surprised that it worked with .authinfo.gpg
👍
Is there any other way of setting user and password for the requests?
I'll also investigate this a bit more and report back any findings.
All best and thanks
(for my reference) looks like I could use the auth-source
library to access the .authinfo.gpg
file to get the credentials needed https://www.gnu.org/software/emacs/manual/html_mono/auth.html
Closing, I am not using this since a long time and I feel nothing will happen here, thanks for your help.
I'd prefer to leave this open, I do think it would be an interesting feature, and you never know when I (or someone!) would have time to work on it.
Hi,
I found the following issue, but I am not sure if I am missing something, does anyone know what is going on?
Thanks in advance for your help.
Context
Problem: es-mode does not read
.authinfo
but aes-mode
block in org-mode does.Description
The following works really nice in
org-mode
bufferBuffer content:
Outcome:
In this case the
src-block
reads the content of authinfo and uses it to set the headers in the request.But if I do the same request in
es-mode
it does not work, seeSteps to Test
.Steps to Test
Pull elasticsearch image from docker and run it
This image has a default user and password, add the following line to
~/.authinfo.gpg
Open scratch buffer and set
es-mode
Insert the following text
Execute it
C-c C-c
I see: