diff --git a/lib/akami/wsse.rb b/lib/akami/wsse.rb index 7212861..0f330a3 100644 --- a/lib/akami/wsse.rb +++ b/lib/akami/wsse.rb @@ -108,7 +108,7 @@ def to_xml end end - private + private # Returns a Hash containing wsse:UsernameToken details. def wsse_username_token @@ -124,6 +124,8 @@ def wsse_username_token else token = security_hash :wsse, "UsernameToken", "wsse:Username" => username, + "wsse:Nonce" => Base64.encode64(nonce).chomp, + "wsu:Created" => timestamp, "wsse:Password" => password, :attributes! => { "wsse:Password" => { "Type" => PASSWORD_TEXT_URI } } end