krakenjs / passport-saml-encrypted

A strategy for Passport authentication that supports encrypted SAML responses
MIT License
14 stars 26 forks source link

Changed the SAML response buffer xml to be decoded to a utf-8 string #3

Closed mmukarram closed 10 years ago

mmukarram commented 10 years ago

Changed the code type from ascii to utf-8 when receiving the SAML response. This will fix the issue when the IdP returns a SAML response with utf-8 encoded data values and the contained signature is based off that encoding. It will prevent signature validation issues later down the line.

lmarkus commented 10 years ago

Thanks!