How to use passport-saml-metadata - 2 common examples

To help you get started, we’ve selected a few passport-saml-metadata examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github open-rpa / openflow / OpenFlowNodeRED / src / Config.ts View on Github external
var metadata: any = await retry(async bail => {
            process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
            var reader: any = await fetch({ url });
            process.env.NODE_TLS_REJECT_UNAUTHORIZED = "1";
            if (reader === null || reader === undefined) { bail(new Error("Failed getting result")); return; }
            var config: any = toPassportConfig(reader);
            // we need this, for Office 365 :-/
            if (reader.signingCerts && reader.signingCerts.length > 1) {
                config.cert = reader.signingCerts;
            }
            return config;
        }, {
            retries: 50,
github open-rpa / openflow / OpenFlow / src / Config.ts View on Github external
var metadata: any = await retry(async bail => {
            var reader: any = await fetch({ url });
            if (Util.IsNullUndefinded(reader)) { bail(new Error("Failed getting result")); return; }
            var config: any = toPassportConfig(reader);
            // we need this, for Office 365 :-/
            if (reader.signingCerts && reader.signingCerts.length > 1) {
                config.cert = reader.signingCerts;
            }
            return config;
        }, {
            retries: 50,

passport-saml-metadata

SAML2 metadata loader

MIT
Latest version published 7 months ago

Package Health Score

61 / 100
Full package analysis

Popular passport-saml-metadata functions