Cookie Authentication

16 views
Skip to first unread message

real...@gmail.com

unread,
Sep 2, 2017, 9:26:58 AM9/2/17
to ektorp-discuss
Hello,

is it possible to use Ektorp with cookie authentication? Unfortunately Ektorp doesn't expose the HttpClient it uses or rather it hides it behind a custom HttpClient class, which offers a lot less functionality than the Apache HttpClient it uses internally. If that HttpClient were exposed to the developer, then I think cookie auth could be implemented on top of Ektorp, no?

Ulrich

Yann ROBERT

unread,
Sep 3, 2017, 11:44:11 AM9/3/17
to ektorp-discuss
Hi Ulrich,

You should be able to inject your own instance of org.apache.http.client.HttpClient into an instance of org.ektorp.http.StdHttpClient.
I use this myself.

If you can configure Apache HttpClient to support the cookie authentication you like, then it should be good to use Ektorp with it.

Please keep us posted on the result.

Yann
Reply all
Reply to author
Forward
0 new messages