Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 faraday-auth-hmac.gemspec
README.md

Faraday AuthHMAC

HMAC Signing for Faraday Requests

Enables signing your requests (from Faraday) with AuthHMAC.

Usage

require 'faraday'
require 'faraday/auth-hmac'

c = Faraday.new do |b|
  b.request :auth_hmac # enables request signing
  b.adapter :net_http
end

c.get('http://localhost/') do |r|
  # signs the request with the access_id and the secret
  r.sign! 'access_id', 'secret'
end

Contributing

  • Fork
  • Work on a topic branch
  • Write tests
  • Add/fix/etc
  • Create a Pull Request
Something went wrong with that request. Please try again.