jordansissel / ruby-ftw

Ruby FTW - For The Web. Experimentation in web clients and servers.
31 stars 18 forks source link

Basic authentication support #18

Open wmeints opened 10 years ago

wmeints commented 10 years ago

It would be really nice if FTW supported basic authentication. I need this support so that I can make secure logging calls to my logstash installation. Something like the following:

Given I have configured username
And I have configured password
And I have enabled basic authentication on the FTW::Agent instance
When I execute a request
And I receive a 401 HTTP response
Then the request is automatically authenticated and retried using specified usr/pwd