debasishg / scouchdb

CouchDB Driver and View Server in Scala
http://debasishg.blogspot.com
73 stars 14 forks source link

Correct authorization with CouchDB #17

Closed naderman closed 13 years ago

naderman commented 13 years ago

A Dispatch HTTP Request will wait for a 401 response before attempting to authenticate when using the as() method. However CouchDB does not send such a response so as_!() needs to be used to enforce immediate authentication.

The Authorization header used at the moment does not work because it does not base64 encode the user and password.

debasishg commented 13 years ago

Thanks .. will look into it very shortly ..

goldenHairDafo commented 13 years ago

Hello, it would be nice if you can merge naderman's fork. I use the them solution. Works well to me with Scala 2.8.1 and CouchDB 1.0.1 and 1.1.1.

Thanks a lot.