You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Im looking to sign an assertion. Trying out this lib like the readme suggest returns in undefined?
varsaml=require('saml').Saml20;// or Saml11varoptions={
cert,// from my X.509 certificate
key,// from my X.509 certificateissuer: 'urn:issuer',lifetimeInSeconds: 600,audiences: 'urn:myapp',attributes: {'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress': 'foo@bar.com','http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name': 'Foo Bar'},nameIdentifier: 'foo',sessionIndex: '_faed468a-15a0-4668-aed6-3d9c478cc8fa'};varsignedAssertion=saml.create(options);console.log(signedAssertion)// undefined (?!)
I was seeing the same behavior today (although I was also encrypting my assertions, which the readme example doesn't). I was able to fix it by moving to the callback version of the create call.
Activity
mpajon commentedon Oct 6, 2023
Maybe it's because node version.
With version 18.0.0 I had the same problem but with 20.8.0 it works
myevit commentedon Jul 16, 2024
same. tried 18.16.1, 20.15.1, 22.4.1
madaster97 commentedon Feb 2, 2025
I was seeing the same behavior today (although I was also encrypting my assertions, which the readme example doesn't). I was able to fix it by moving to the callback version of the create call.