Closed HeroesDieYoung closed 7 years ago
Retracting this issue, a different mistake in my project was causing the error I saw. This library does correctly register namespaces with xpath to allow any namespace mapped to the correct URI to be parsed. Apologies for any confusion.
The response-handling.js function 'processResponse' assumes a namespace of 'saml' will be used, rather than determining the namespace in use. See this line:
const issuer = select("//saml:Issuer/text()", doc)[0];
Here is a (redacted) example of an assertion document from JumpCloud that uses 'saml2' as the namespace instead, resulting in errorUnable to identify issuer
from the library: