Awesome
Faraday OAuth
A Faraday middleware that adds an access token to each request.
Installation
Add this line to your application's Gemfile:
gem 'faraday-oauth'
Usage and configuration
You have to use the middleware in the Faraday instance that you want to.
client = Faraday.new do |builder|
builder.use :oauth, {:consumer_key => consumer_key, :consumer_secret => consumer_secret, :body_hash => body_hash}
builder.adapter Faraday.default_adapter
end
License
The gem is available as open source under the terms of the MIT License.