Skip to content

fix(auth): two TypeError crash paths on malformed IdP claims become audited ClaimsError (BACKLOG #1016) - #244

Merged
wshallwshall merged 2 commits into
mainfrom
fix-1016-claims-malformed-idp
Aug 7, 2026
Merged

fix(auth): two TypeError crash paths on malformed IdP claims become audited ClaimsError (BACKLOG #1016)#244
wshallwshall merged 2 commits into
mainfrom
fix-1016-claims-malformed-idp

Conversation

@wshallwshall

Copy link
Copy Markdown
Collaborator

Fixes BACKLOG #1016. Sequenced AFTER #1015 (auth cluster base).

Two TypeError crash paths on malformed IdP responses become a named, audited ClaimsError
(nonce_mismatch / claim_aud). A valid token still validates.

CORRECTED PATH, worth noting because the manifest first recorded it wrongly: the fix is in
messagefoundry/auth/oidc/claims.py, NOT auth/claims.py.

PROVENANCE, stated rather than omitted: the lane BUILT but did not commit -- blocked by the claim
hook requiring the committing worktree to own the claim. The item was re-claimed to the worktree and
committed there. Pre-commit hooks (leak guard, secrets, bandit, ruff) all PASSED; no --no-verify.
Tests were verified IN-LANE via 3-lens verify and falsifications, and were not re-run at
salvage time.

@wshallwshall
wshallwshall enabled auto-merge (squash) August 6, 2026 14:16
@wshallwshall
wshallwshall merged commit b335929 into main Aug 7, 2026
33 checks passed
@wshallwshall
wshallwshall deleted the fix-1016-claims-malformed-idp branch August 7, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant