[PR #8647] fix(sso): read SAML InResponseTo from correct path #16363

Open
opened 2026-04-13 10:30:13 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8647

State: open
Merged: No


Summary

  • Fix SAML InResponseTo validation that always fails when enableInResponseToValidation is enabled
  • samlify's extractor nests InResponseTo under extract.response, but the two login handlers read extract.inResponseTo (always undefined)
  • The logout handler already used the correct path extract?.response?.inResponseTo

Closes #8607
Closes #8608

Test plan

  • Enable enableInResponseToValidation with allowIdpInitiated: false
  • Initiate SP-initiated SAML login — should now succeed instead of being rejected
**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8647 **State:** open **Merged:** No --- ## Summary - Fix SAML InResponseTo validation that always fails when `enableInResponseToValidation` is enabled - `samlify`'s extractor nests `InResponseTo` under `extract.response`, but the two login handlers read `extract.inResponseTo` (always `undefined`) - The logout handler already used the correct path `extract?.response?.inResponseTo` Closes #8607 Closes #8608 ## Test plan - Enable `enableInResponseToValidation` with `allowIdpInitiated: false` - Initiate SP-initiated SAML login — should now succeed instead of being rejected
GiteaMirror added the pull-request label 2026-04-13 10:30:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16363