Skip to content

fix: thread referrer through OIDC state so signup records acquisition… - #2939

Closed
jelveh wants to merge 4 commits into
mainfrom
oidc-referrer
Closed

fix: thread referrer through OIDC state so signup records acquisition…#2939
jelveh wants to merge 4 commits into
mainfrom
oidc-referrer

Conversation

@jelveh

@jelveh jelveh commented May 6, 2026

Copy link
Copy Markdown
Contributor

OIDC signups never had the referrer field set because the callback request from the IdP doesn't carry the frontend's JSON body. Fix by passing referrer as a query param to the OIDC start endpoint, embedding it in the signed state JWT, and forwarding it to createUserFromOIDC.

… origin

OIDC signups never had the referrer field set because the callback
request from the IdP doesn't carry the frontend's JSON body. Fix by
passing referrer as a query param to the OIDC start endpoint, embedding
it in the signed state JWT, and forwarding it to createUserFromOIDC.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@ProgrammerIn-wonderland ProgrammerIn-wonderland left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks sane, need to test

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 30.96%
⬇️ -0.01%
5443 / 17577
🔵 Statements 30.21%
⬇️ -0.01%
5762 / 19068
🔵 Functions 32.74%
🟰 ±0%
978 / 2987
🔵 Branches 19.83%
⬇️ -0.01%
2785 / 14042
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/backend/controllers/oidc/OIDCController.ts 9.6%
⬇️ -0.28%
0%
🟰 ±0%
7.69%
🟰 ±0%
10.05%
⬇️ -0.25%
44-86, 104-105, 119-209, 221-275, 283-337, 348-395, 407-589
src/backend/services/auth/OIDCService.ts 6.47%
🟰 ±0%
1.57%
🟰 ±0%
5.55%
🟰 ±0%
7.14%
🟰 ±0%
23-442
Generated in workflow #24 for commit fb5dda8 by the Vitest Coverage Report Action

@jelveh jelveh closed this May 9, 2026
@jelveh
jelveh deleted the oidc-referrer branch May 17, 2026 00:13
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.

2 participants