Gathering detailed insights and metrics for passport-wsfed-saml2-inlinexmlcrypto
Gathering detailed insights and metrics for passport-wsfed-saml2-inlinexmlcrypto
Gathering detailed insights and metrics for passport-wsfed-saml2-inlinexmlcrypto
Gathering detailed insights and metrics for passport-wsfed-saml2-inlinexmlcrypto
passport strategy for both WS-fed and SAML2 protocol
npm install passport-wsfed-saml2-inlinexmlcrypto
Typescript
Module System
Min. Node Version
NPM Version
Update .npmignore
Updated on Jun 16, 2021
v4.5.0 Add Destination and AssertionConsumerServiceURL as SAML request template variables
Updated on Jun 09, 2021
v4.4.0 Use @auth0/xmldom
Updated on Mar 02, 2021
v4.3.0 Add support for modern encryption algorithms
Updated on Feb 03, 2021
Support Node 10
Updated on Jun 14, 2019
Handle exception when requestTemplate is malformed between placeholders (#90)
Updated on Jul 24, 2018
JavaScript (99.55%)
EJS (0.45%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
49 Stars
71 Commits
62 Forks
86 Watchers
31 Branches
63 Contributors
Updated on May 20, 2025
Latest Version
0.5.0-0
Package Id
passport-wsfed-saml2-inlinexmlcrypto@0.5.0-0
Size
75.94 kB
NPM Version
1.2.32
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This is a ws-federation protocol + SAML2 tokens authentication provider for Passport.
The code was originally based on Henri Bergius's passport-saml library.
Passport-wsfed-saml2 has been tested to work with both Windows Azure Active Directory / Access Control Service and with Microsoft Active Directory Federation Services.
$ npm install passport-wsfed-saml2
This example utilizes a development namespace (auth10-dev) on Windows Azure Access Control Service and is using Google as the only identity provider configured for the sample application.
1passport.use(new wsfedsaml2( 2 { 3 path: '/login/callback', 4 realm: 'urn:node:app', 5 homeRealm: '', // optionally specify an identity provider to avoid showing the idp selector 6 identityProviderUrl: 'https://auth10-dev.accesscontrol.windows.net/v2/wsfederation', 7 cert: 'MIIDFjCCA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10 findByEmail(profile.email, function(err, user) { 11 if (err) { 12 return done(err); 13 } 14 return done(null, user); 15 }); 16 }) 17));
You need to provide a route corresponding to the path
configuration parameter given to the strategy:
1app.post('/login/callback', 2 passport.authenticate('wsfed-saml2', { failureRedirect: '/', failureFlash: true }), 3 function(req, res) { 4 res.redirect('/'); 5 } 6);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 28/29 approved changesets -- score normalized to 9
Reason
branch protection is not maximal on development and all release branches
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More