Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

HTTP Digest authentication for ActiveResource

#3335

ActiveResource supports HTTP Basic authentication, but not HTTP Digest authentication, which poses something of a problem when consuming APIs that expect the client to provide Digest credentials (as currently supported by Rails). This patch allows an ActiveResource class to specify that it should provide credentials to the server as a digest. As an example:

class Foo < ActiveResource
self.user = 'fred' self.password = 'password' self.auth_type = :digest end

Any auth_type other than 'digest' or :digest will default back to Basic authentication. If the class doesn't specify credentials it still falls back to no authentication. Tests included.

Reported by Pivotal Labs · October 5th, 2009 @ 10:02 PM

State: committed
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Michael Koziarski
    Michael Koziarski
    • State changed from new to committed

    945d999aadc9df41487e675fa0a863396cb54e31 contains this

    You should set your name in git-config btw :)

    October 14th, 2009 @ 10:46 PM