Sha256: d3bc8398d8b605ccb9b57da0073331f915a84085179ff0ca28ac2078b25315fc
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
# Idea taken from: http://blog.willcannings.com/2008/07/06/wsse-authentication-in-ruby-soap4r/ # See also: http://journal.dedasys.com/2009/05/08/ruby-soap4r-wsse-authentication require 'soap/header/simplehandler' class G4SIAuthHeader < SOAP::Header::SimpleHandler NAMESPACE = 'http://tempuri.org' def initialize(username, password, accessKey) @username, @password, @accessKey = username, password, accessKey super(XSD::QName.new(NAMESPACE, 'G4SIAuthentication')) end def on_simple_outbound {"Username" => @username, "Password" => @password, "AccessKey"=>@accessKey} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g4s_client-0.1.4 | lib/g4s/g4si_auth_header.rb |