Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as samlify from 'samlify';
import * as fs from 'fs';
import * as validator from '@authenio/samlify-node-xmllint';
const binding = samlify.Constants.namespace.binding;
samlify.setSchemaValidator(validator);
// configure okta idp
const oktaIdp = samlify.IdentityProvider({
metadata: fs.readFileSync(__dirname + '/../metadata/okta.xml'),
wantLogoutRequestSigned: true
});
const oktaIdpEnc = samlify.IdentityProvider({
metadata: fs.readFileSync(__dirname + '/../metadata/okta-enc.xml'),
isAssertionEncrypted: true,
messageSigningOrder: 'encrypt-then-sign',
wantLogoutRequestSigned: true,
});
// configure our service provider (your application)
const sp = samlify.ServiceProvider({