Awesome
Faraday::DigestAuth
Installation
Add this line to your application's Gemfile:
gem 'faraday-digestauth'
And then execute:
$ bundle install
Usage
require 'faraday'
require 'faraday/digestauth'
conn = Faraday.new(url: HOSTNAME) do |f|
f.request :digest, USERNAME, PASSWORD
f.adapter Faraday.default_adapter
end
conn.get 'resource'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
History
This gem was extracted from Hyperclient by @oriolgual and turned into a gem by @bhaberer.
Note: I'm not actively maintaining or managing this gem any longer, as I no longer work on projects using digest auth, if you would like to help maintain this gem please let me know.
License
MIT License, see LICENSE for details.