On Mon, Oct 03, 2011 at 05:12:14PM -0600, Pete Zaitcev wrote:
RPMs are available here:
http://people.redhat.com/zaitcev/ftp/iwhd/iwhd-0.98.41-1.z1.el6.src.rpm
http://people.redhat.com/zaitcev/ftp/iwhd/iwhd-0.98.41-1.z1.el6.x86_64.rpm
For now there is no user file, so only one user can be set,
and it is set with -U flag. So, you would need to do something like this:
echo 'IWHD_ARGS="-d localhost:27017 -l /var/log/iwhd.log \
-o -U user:password"' >> /etc/sysconfig/iwhd
The RPMs include the import timeout increased to 1 hour.
Please let me know how it goes.
Some quick tests indicate that all's well from Ruby-land!
I used a basic client that I'd written, started iwhd in OAuth mode (per
the example you included), and verified the following:
- Visit /images without any OAuth setup. I got a 401.
- Visit /images with a bogus username. I got a 403.
- Visit /images with the keys specified (I keep wanting to call them
'username' and 'password'). I got a 200 and the XML list of images.
The one thing that was a little weird is that if I used a correct
consumer key but an incorrect consumer secret, Ruby raises an "EOFError:
end of file reached" exception. I infer we're receiving something like
an empty response as opposed to a reply indicating an authorization
failure.
-- Matt