Module: Px::Service::Client::HmacSigning
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/px/service/client/hmac_signing.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#_make_request_with_signing(method, uri, query: nil, headers: nil, body: nil, timeout: nil, stats_tags: []) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/px/service/client/hmac_signing.rb', line 40 def _make_request_with_signing(method, uri, query: nil, headers: nil, body: nil, timeout: nil, stats_tags: []) = Time.now.to_i signature = self.class.generate_signature(method, uri, query, body, ) headers = {} if headers.nil? headers.merge!("X-Service-Auth" => signature) headers.merge!("Timestamp" => ) _make_request_without_signing( method, uri, query: query, headers: headers, body: body, timeout: timeout, stats_tags: ) end |