Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Ability to perform digest authentication #125

Open
DavidPerezIngeniero opened this issue Feb 27, 2017 · 5 comments
Open

Ability to perform digest authentication #125

DavidPerezIngeniero opened this issue Feb 27, 2017 · 5 comments

Comments

@DavidPerezIngeniero
Copy link

Many tools like curl, Apache HttpComponents allow to do this.
I think only Basic auth is possible.

@hoffrocket
Copy link
Member

Yes, currently on basic auth is supported. I'll take a stab at adding digest support.

@hoffrocket
Copy link
Member

Hi, i just added this support in c060f85, but haven't tested in the real world. Can you clone the repo and test for your use case?
You can start a scala console with ./sbt console
Example usage looks like: scalaj.http.Http(url).digestAuth(user, pass).asString

@DavidPerezIngeniero
Copy link
Author

DavidPerezIngeniero commented Mar 6, 2017

Thanks.

I've evaluated this expression with the right user/password combination and it returns Unauthorized:

import scalaj.http._
Http("http://escucha03.fccma.com:8001/menu").digestAuth("user", "password").asString.body

Am I missing something?

@hoffrocket
Copy link
Member

I Just pushed a potential fix. Could you pull the latest commits and try again?

@spydon
Copy link

spydon commented Mar 10, 2020

I just tried this out and it works perfectly for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants