Sha256: 1dfe1b24dcf2c4b0e393200c47f04b5caca5e2ed6dba02de29dc410959f32c02
Contents?: true
Size: 362 Bytes
Versions: 18
Compression:
Stored size: 362 Bytes
Contents
class Epics::XMLSIG < Faraday::Middleware def initialize(app, options = {}) super(app) @client = options[:client] end def call(env) @signer = Epics::Signer.new(@client, env["body"]) @signer.digest! @signer.sign! env["body"] = @signer.doc.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML) @app.call(env) end end
Version data entries
18 entries across 18 versions & 1 rubygems