finds.dev

tngan/samlify

Node.js library for SAML SSO

View on GitHubHomepage ↗

★ 663TypeScriptMITupdated Oct 2026

// the take

samlify is a TypeScript library for building SAML SSO integrations (IdP and SP side) in Node — the thing you reach for when you need to bolt SAML onto an Express app talking to Okta, OneLogin, or Google Workspace. It's aimed at backend developers who need protocol-level SSO support without wiring up raw XML by hand.

It separates binding types cleanly (POST, redirect, simple-sign) and metadata handling for both IdP and SP roles, so you're not stuck with one integration pattern. Schema validation is enforced by default rather than optional, and it's pluggable — you can swap in a Java-based, xmllint-based, or custom validator depending on what your deployment environment can run. Test coverage includes actual attack fixtures (signature-stripping, forged responses, attribute injection) rather than just happy-path cases, which matters a lot for a security-critical library. There's also a documented security audit and a spec-citation workflow tying code back to the SAML/XML-DSig RFCs, which is unusually disciplined for a project this size.

Schema validation needs an external native dependency — Java or xmllint — that isn't bundled; that's an extra piece of infrastructure to install and keep patched in every deployment target, including CI and containers. The validator is set globally via `setSchemaValidator`, not scoped per request or per entity, so a single process serving multiple tenants or configs has to share one validation strategy. SAML/XML-DSig implementations are a well-known source of signature-wrapping and canonicalization bugs industry-wide, and the README itself flags that skipping validation silently accepts malicious messages — so correctness here is load-bearing in a way that's easy to get wrong if you're not already fluent in the SAML spec. It also looks like a single-maintainer project judging by the commit pattern, which is a real bus-factor risk for something sitting in your auth path.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
663
Forks
235
Language
TypeScript
License
MIT
Last commit
21 Oct 2026

// nearby

If samlify isn't quite it.

All repos →