SAML 2.0 NameID format pitfalls for authorized SP/IdP review: email vs persistent vs transient identity keys, Format attribute mismatch, mutable subject linking, SPNameQualifier confusion, and account-merge ATO paths. Use when SAML Subject/NameID, NameIDPolicy, or post-ACS account linking is in scope and wrong principal binding or format drift is suspected.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
saml-nameid-format-pitfalls
description
SAML 2.0 NameID format pitfalls for authorized SP/IdP review: email vs persistent vs transient identity keys, Format attribute mismatch, mutable subject linking, SPNameQualifier confusion, and account-merge ATO paths. Use when SAML Subject/NameID, NameIDPolicy, or post-ACS account linking is in scope and wrong principal binding or format drift is suspected.
SAML NameID Format Pitfalls
How the SP chooses, compares, and links SAML NameID after trust checks.
Complements saml-sso-basics; this skill owns subject identity semantics.
When To Use
SP maps users from NameID (email, UUID, UPN) or treats Format loosely
IdP / NameIDPolicy advertise one Format; ACS accepts another
Authorized only: owned SP apps, labs/CTFs, or written scope naming the SP
and any IdP/tenant driven with dual test users. Prefer staging federation.
No third-party IdP production abuse, workforce identities, or stolen assertion
replay. Redact emails/employee/persistent IDs publicly; ACS offline. No SSO outages.
Workflow
1. Inventory NameID contract
Field
Capture
Requested Format
NameIDPolicy Format in AuthnRequest (if any)
Issued Format
NameID Format= on Subject
Value shape
email, UUID, UPN, opaque, empty
Qualifiers
NameQualifier, SPNameQualifier, SPProvidedID
SP lookup key
external id column / email unique index
Linking policy
auto-create, match-by-email, admin-provision only
Allowlist
Formats SP accepts (config / code)
Decode authorized SAMLResponse offline. Record Format URI and raw value.