lib/finapps/middleware/middleware.rb in finapps-2.0.30 vs lib/finapps/middleware/middleware.rb in finapps-2.1.1

- old
+ new

@@ -3,16 +3,18 @@ module FinApps module Middleware autoload :AcceptJson, 'finapps/middleware/request/accept_json' autoload :UserAgent, 'finapps/middleware/request/user_agent' + autoload :NoEncodingBasicAuthentication, 'finapps/middleware/request/no_encoding_basic_authentication' autoload :TenantAuthentication, 'finapps/middleware/request/tenant_authentication' autoload :CustomLogger, 'finapps/middleware/response/custom_logger' if Faraday::Middleware.respond_to? :register_middleware Faraday::Request.register_middleware \ accept_json: -> { AcceptJson }, user_agent: -> { UserAgent }, + no_encoding_basic_authentication: -> { NoEncodingBasicAuthentication }, tenant_authentication: -> { TenantAuthentication } Faraday::Response.register_middleware \ custom_logger: -> { CustomLogger } end end