Permalink
Browse files

Merge pull request #39 from jbuchbinder/master

fix #38
  • Loading branch information...
2 parents f9df0af + 578fc27 commit 024b343e3624d01a306d093f882baea29231d5ec @milewise milewise committed Apr 19, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/soap.js
View
@@ -87,8 +87,12 @@ WSSecurity.prototype.toXML = function() {
"<wsse:UsernameToken xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" wsu:Id=\"SecurityToken-"+created+"\">" +
"<wsse:Username>"+this._username+"</wsse:Username>" +
//TODO:FIXME: reenable password hash
+ // Possible types ( from http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-pr-UsernameTokenProfile-01.htm ):
+ // http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest
+ // http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
+ // http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0 #UsernameToken
//"<wsse:Password Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest\">"+passwordDigest+"</wsse:Password>" +
- "<wsse:Password>"+this._password+"</wsse:Password>" +
+ "<wsse:Password Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText\">"+this._password+"</wsse:Password>" +
"<wsse:Nonce EncodingType=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary\">"+nonce+"</wsse:Nonce>" +
"<wsu:Created>"+created+"</wsu:Created>" +
"</wsse:UsernameToken>" +

0 comments on commit 024b343

Please sign in to comment.