Client Digest Authentication Patch for SOAP
This is a patch to add Client Digest Authentication for SOAP service. It requires soap4r and http-acces 2 gems. Digest Authentication is mainly use by Microsoft SOAP Services
TO INSTALL
Get the source for soap4r at http://dev.ctor.org/soap4r
Get the source for http-access2 at http://dev.ctor.org/http-access2
Download digest.zip and Extract it. You will get two files: HttpDigestPatch?.diff and SoapDigestPatch?.diff
Apply HttpDigestPatch?.dif to http-acces2 source files (one file will be changed /lib/http-access2.rb)
Apply SoapDigestPatch?.dif to soap4r source files (two files will be changed /lib/soap/httpconfigloader.rb and /lib/soap/streamHandler.rb)
TO USE
It use is similar to basic authentication for soap4r:
You need to pass the following array of options to your soap service [endpoint_url,user,password]
E.g.
soap = MyServiceSoap.new(endpoint_url) soap.options["protocol.http.digest_auth"] << [endpoint_url, user, password]
Note: Notice it is not "protocol.http.basic_auth" like in Basic authorization it is "protocol.http.digest_auth"
Attachments
- digest.zip (2.1 kB) - added by sromano on 05/24/07 16:31:39.