Sha256: 909b8f0dc5abdd9ef8a600f3e72b30c2b0c26770e25f37edaa9b2f17621a1551
Contents?: true
Size: 1021 Bytes
Versions: 2
Compression:
Stored size: 1021 Bytes
Contents
# Faraday OAuth [](https://github.com/instructure/faraday-oauth/actions?query=branch%3Amain) [](https://rubygems.org/gems/faraday-oauth) [](LICENSE.md) A Faraday middleware that adds an access token to each request. ## Installation Add this line to your application's Gemfile: ```ruby gem 'faraday-oauth' ``` ## Usage and configuration You have to use the middleware in the Faraday instance that you want to. ```ruby 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](https://opensource.org/licenses/MIT).
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faraday-oauth-0.1.1 | README.md |
faraday-oauth-0.1.0 | README.md |