detergentex icon indicating copy to clipboard operation
detergentex copied to clipboard

Access to authenticated web services.

Open jgarciasacristan opened this issue 9 years ago • 6 comments

Hi Ricardo, Does detergentex support authenticated services? I need to contact a service using elixir that requires username/password. Thank you.

jgarciasacristan avatar Jun 16 '15 23:06 jgarciasacristan

Hello I think it its current state it works if the user and password are part of the service parameters if you have to send it in the headers part then I need to call that detergent function instead. Which at the moment I don't do.

If you need that then I can modify it and you can test it to add that functionality to the library.

r-icarus avatar Jun 21 '15 00:06 r-icarus

Thank you for your answer. I am going to fork the project and try to add that functionality myself. Once it works I will issue a pull request. Hopefully my use case will be supported by detergent (erlang) out of the box. Otherwise I will have to change the erlang project first.

jgarciasacristan avatar Jun 21 '15 11:06 jgarciasacristan

Hey I was looking into the Erlang code and I think this line should be a clue of how to send the headers.

https://github.com/devinus/detergent/blob/master/src/detergent.erl#L113

Hopefully you don't need to modify the Erlang project.

r-icarus avatar Jun 21 '15 20:06 r-icarus

Hi @jgarciasacristan, I know it's been a while but did you manage to access an authenticated service?

kottkrig avatar Aug 15 '17 13:08 kottkrig

Hi @kottkrig, did you find any information about authentication?

f1729 avatar Aug 22 '17 16:08 f1729

@f1729 no unfortunately not.

kottkrig avatar Aug 22 '17 18:08 kottkrig