> SAML 2.0 Single Sign-On
Enterprise SAML SSO with service provider setup, assertion validation, and IdP integration.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/saml-sso?format=md"SKILL.md•SAML 2.0 Single Sign-On
SAML SSO
Flow: SP → AuthnRequest → IdP → SAML Response → SP ACS URL
Node.js (saml2-js)
const sp = new saml2.ServiceProvider({
entity_id: 'https://app.com/saml/metadata',
assert_endpoint: 'https://app.com/saml/acs',
private_key: fs.readFileSync('sp-key.pem', 'utf-8'),
certificate: fs.readFileSync('sp-cert.pem', 'utf-8'),
});
app.get('/saml/login', (req, res) => {
sp.create_login_request_url(idp, {}, (err, url) => res.redirect(url));
});
app.post('/saml/acs', (req, res) => {
sp.post_assert(idp, { request_body: req.body }, (err, resp) => {
req.session.user = { email: resp.user.name_id };
res.redirect('/dashboard');
});
});
Generate Certs: openssl req -x509 -newkey rsa:2048 -keyout sp-key.pem -out sp-cert.pem -days 3650 -nodes
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.