# How can I get soap4r to work with digest authentication?

**URL:** <https://www.ruby-forum.com/t/how-can-i-get-soap4r-to-work-with-digest-authentication/74177>\
**Category:** Ruby\
**Created:** [December 21, 2005, 1:00pm UTC](https://www.ruby-forum.com/t/how-can-i-get-soap4r-to-work-with-digest-authentication/74177 "2005-12-21T13:00:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [December 21, 2005, 1:00pm UTC](https://www.ruby-forum.com/t/how-can-i-get-soap4r-to-work-with-digest-authentication/74177/1 "2005-12-21T13:00:15Z")

</div>

Hello,

I used wsdl2rb.rb to create a SOAP client and got it to work with basic  
authentication by adding one single line of code to the  
defaultDriver.rb file that was built by wsdl2rb.rb. (I also had to  
install http-access2 over my Ruby installation to avoid a runtime  
error.)

options[“protocol.http.basic\_auth”]\<\<  
"[https://www.example.com/somewhere/](https://www.example.com/somewhere/), “user”, “passwd”]

So far so good.

Now: How do I add support for digest authentication to my client?

I’m using Ruby 1.8.1 for Windows.  
I’ve installed soap4r 1.5.5.  
I’ve installed http-access2 2.0.6.

Thanks,  
Yonatan
