0.0
The project is in a healthy, maintained state
Uses the simple_oauth library to sign requests according the OAuth protocol.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 13.0
~> 3.0
~> 0.21

Runtime

 Project Readme

Faraday OAuth

GitHub Workflow Status Gem License

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.