Package Exports
- saml
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (saml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Create SAML assertions.
NOTE: currently supports SAML 1.1 tokens
Usage
var saml11 = require('saml').Saml11;
var options = {
cert: fs.readFileSync(__dirname + '/test-auth0.pem'),
key: fs.readFileSync(__dirname + '/test-auth0.key'),
issuer: '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'
};
var signedAssertion = saml11.create(options);Everything except the cert and key is optional.
