Class: MAuth::Faraday::RequestSigner

Inherits:
Middleware show all
Defined in:
lib/mauth/faraday.rb

Overview

faraday middleware to sign outgoing requests

Instance Method Summary collapse

Methods inherited from Middleware

#initialize, #mauth_client

Constructor Details

This class inherits a constructor from MAuth::Middleware

Instance Method Details

#call(request_env) ⇒ Object



13
14
15
16
# File 'lib/mauth/faraday.rb', line 13

def call(request_env)
  signed_request_env = mauth_client.signed(MAuth::Faraday::Request.new(request_env)).request_env
  @app.call(signed_request_env)
end