Skip to content

fix(examples): remove incorrect POST binding query string example - #64

Merged
kellenmurphy merged 1 commit into
mainfrom
fix/examples-post-binding
May 25, 2026
Merged

fix(examples): remove incorrect POST binding query string example#64
kellenmurphy merged 1 commit into
mainfrom
fix/examples-post-binding

Conversation

@kellenmurphy

Copy link
Copy Markdown
Owner

Summary

  • SAMLResponse= in a query string implies HTTP-Redirect binding (DEFLATE-compressed). POST binding sends the SAMLResponse in the HTTP POST body — it only looks like a query string when intercepted in a tool like Burp Suite.
  • The "POST binding form value" query string example I added produced a non-compressed base64 value labelled as a query string, which is technically wrong.
  • Removed the example and the encodePostBinding helper it depended on (now unused dead code).
  • The "Query string" category retains one correct example: SAMLRequest=<deflated>&RelayState=... (redirect binding).

Test plan

  • CI passes
  • Coverage still 100% (9 examples → now 9, functions 78 → 76)

SAMLResponse= in a query string implies HTTP-Redirect binding (DEFLATE
compressed). A POST binding SAMLResponse lives in the HTTP POST body — it
only looks like a query string when intercepted. Removed the misleadingly
labelled example and the encodePostBinding helper it depended on.
@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kellenmurphy
kellenmurphy merged commit 984cc30 into main May 25, 2026
5 checks passed
@kellenmurphy
kellenmurphy deleted the fix/examples-post-binding branch May 25, 2026 18:53
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