lib/akami/wsse.rb in akami-1.2.1 vs lib/akami/wsse.rb in akami-1.2.2

- old
+ new

@@ -26,10 +26,12 @@ PASSWORD_TEXT_URI = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" # PasswordDigest URI. PASSWORD_DIGEST_URI = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest" + BASE64_URI = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" + # Returns a value from the WSSE Hash. def [](key) hash[key] end @@ -114,10 +116,10 @@ token = security_hash :wsse, "UsernameToken", "wsse:Username" => username, "wsse:Nonce" => Base64.encode64(nonce), "wsu:Created" => timestamp, "wsse:Password" => digest_password, - :attributes! => { "wsse:Password" => { "Type" => PASSWORD_DIGEST_URI } } + :attributes! => { "wsse:Password" => { "Type" => PASSWORD_DIGEST_URI }, "wsse:Nonce" => { "EncodingType" => BASE64_URI } } # clear the nonce after each use @nonce = nil else token = security_hash :wsse, "UsernameToken", "wsse:Username" => username,