Skip to content

🐛 fix(auth): bind OIDC callbacks to providers - #1855

Merged
gaborbernat merged 1 commit into
mainfrom
fix/oidc-provider-1535
Aug 30, 2026
Merged

gaborbernat merged 1 commit into
mainfrom
fix/oidc-provider-1535

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

The sealed OIDC handoff omitted its provider, so a browser could present that handoff to another configured provider route in violation of RFC 9700 section 4.4.

Peryx seals the provider ID with each pending login and checks it before discovery or token exchange. Provider mismatches and legacy handoffs without an ID return the existing bad-request response and clear peryx_login; matching single- and multi-provider callbacks retain their session flow.

Closes #1535

The callback accepted an OIDC handoff on any configured provider route
because the sealed state lacked an issuer binding. A second provider could
exchange the browser verifier and nonce.

Bind each handoff to its provider and reject mismatches before provider
traffic. Clear rejected and legacy cookies to prevent reuse on another route.
@gaborbernat gaborbernat added the bug Something isn't working label Aug 29, 2026
@gaborbernat gaborbernat self-assigned this Aug 29, 2026
@codspeed

codspeed Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 23 untouched benchmarks
⏩ 139 skipped benchmarks1


Comparing fix/oidc-provider-1535 (259564c) with main (60698d6)

Open in CodSpeed

Footnotes

  1. 139 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@gaborbernat
gaborbernat merged commit 711f200 into main Aug 30, 2026
32 checks passed
@gaborbernat
gaborbernat deleted the fix/oidc-provider-1535 branch August 30, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bind the OIDC callback to its login provider

1 participant