I hope this is the right place to post this, apologies if it isn't.
I have been working a bit with ActiveResource for an application I'm
building at work. Ares is fantastic (as is Rails 1.2, great job guys),
but I have run into a small issue.
All applications at my company sit behind a secure reverse proxy (IBM
Tivoli Access Manager WebSEAL). It's configured in such a way that only
forms-based authentication is allowed. Applications behind the proxy
receive the user credential in the header, and then make a web service
call to retrieve user meta data and finer-grained access roles. The
rails app has a session, as does the reverse proxy. In order to make
ActiveResource work I need a way to pass in those session cookies so it
will send them when it makes requests. I can write the forms-based
login bits myself and retrieve the cookies (I already have in fact).
But Ares doesn't (appear to) have a way to pass in arbitrary headers.
My first question is, is there a way to do this that I missed? What I
ended up doing was modifying the code to allow passing a cookie string
which gets added to the default_headers. It works perfectly, and I'll
happily send a patch. But I wonder if there might be some value in
allowing more broad access to the Net::HTTP connection options in
Forgive me if there already is a way to do this. But if there currently
isn't, is this something that could be added? I'd be willing to hack at
it if requested.