Class: MAuth::Rack::ResponseSigner

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

Overview

signs outgoing responses

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(env) ⇒ Object



75
76
77
78
79
# File 'lib/mauth/rack.rb', line 75

def call(env)
  unsigned_response = @app.call(env)
  signed_response = mauth_client.signed(MAuth::Rack::Response.new(*unsigned_response))
  signed_response.status_headers_body
end