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



11
12
13
14
# File 'lib/mauth/faraday.rb', line 11

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