Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sso Saml?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-sso-saml-anvil)
---
name: sso-saml
description: Integrate enterprise SAML 2.0 SSO safely with signature checks, strict XML parsing, replay protection, and JIT mapping
---
<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->
# SSO SAML
Use when implementing or auditing SAML 2.0 enterprise single sign-on flows.
## Validation and XML security
- Require XML signatures on the Assertion (and verify the signed element covers the extracted NameID/Attributes) against the tenant's pinned IdP X.509 certificate—never skip signature verification outside isolated local mocks.
- Use hardened XML parsers that forbid DTDs, external entities (XXE), and XSLT transforms to prevent XML signature wrapping and entity attacks.
- Enforce `Audience` matching your SP Entity ID, `Recipient` matching your exact ACS URL, bounded `NotBefore`/`NotOnOrAfter` clock skew, and `InResponseTo` tracking.
## Sessions and provisioning
- Store issued assertion IDs briefly until expiry to block SAML assertion replay attacks.
- Scope SAML trust strictly per organization/email domain so one tenant's IdP cannot assert users of another domain; bind `RelayState` to validated relative paths only.
## Verify
Test tampered XML signatures, expired assertions, mismatched Audience/Recipient values, cross-tenant domain attempts, and replayed assertions.