class Restforce::Bulk::Middleware::Authorization

Piece of middleware that simply injects the OAuth token into the request headers.

Constants

AUTH_HEADER

Public Instance Methods

call(env) click to toggle source
# File lib/restforce/bulk/middleware/authorization.rb, line 8
def call(env)
  env[:request_headers][AUTH_HEADER] = @options[:oauth_token]
  @app.call(env)
end