Repository navigation
fix(j5): J5 Connect sign-in follow-ups - #1261
Merged
Merged
Conversation
From CodeRabbit's review of #1257: - The join's secret check counts only a client error about the made-up code as the secret taken; a 5xx `invalid_request` (Dex's outage answer) fails it. - A pass counts as answered only when discovery answers and so does at least one refresh, when there are any: refreshes that all time out or meet a server error are no answer, and the lapse waits on the count. - A pass reads the J5 Connect and its secret together at its start. - Rejoining with another client id forgets the accounts, as another issuer does. - An ID token must carry `iat`. - An error's status holds only the HTTP status and a recognized OAuth error code; the raw answer stays in its cause. - Tests assert the exact account a session came from, and a disabled account cannot sign in until it is active again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…answered - A failed discovery or a missing client secret is never an answer. - A refresh's failure is an answer only for a 2xx or a 4xx response; a redirect, a server error, a timeout or an unreadable answer is not. - The join probe treats a token for the made-up code as a probe error. - A token endpoint error keeps its raw response text as the cause. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
enabled auto-merge (squash)
November 27, 2026 20:35
6 of 8 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CodeRabbit's inline review of #1257, which arrived after that PR's re-check, found that a J5 Connect outage could still pass for an answer. These are the findings the Eng Lead accepted; the rest are answered on their threads.
What changed
invalid_grantorinvalid_requestfor the made-up code counts as the secret accepted. Dex answers an outage with a 500invalid_request, so a 5xx now fails the check.iatrequired (4723233784): an ID token must carryiat.OidcError.statusholds only the HTTP status and an OAuth error code it recognizes. The raw answer goes incause.Identity.tsimportsReadChangesas a namespace.Tests
identity/Identity.test.tsnow covers:The no-ID-token case now lapses through the no-answer count. It lapses on pass 25, because the first refresh spends the token and later refreshes meet a refusal that looks like an outage.
Live testing
No live run: this is server logic covered by the in-process J5 Connect tests above. Nothing a person sees changed.
Upstream impact
None. J5-owned files only.
Checklist
Built by Claude Opus 5.5 in Claude Code (J5 Code).
🤖 Generated with Claude Code