Repository navigation
refactor(auth): share OAuth transport and bookkeeping helpers (ENG-1066) - #343
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 947b1873db
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
947b187 to
9174a3d
Compare
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
14504fb to
97ee5c6
Compare
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Slice AP1. The OpenAI Codex and xAI flows each built the same HTTPS-only OAuth client, bounded JSON body reader, Unix clock and PROVIDER/PROFILE credential name. One copy now lives in qq-auth's oauth module; each flow keeps its own error mapping, so messages and variants are unchanged.
Slice AP1 review: the plan lists the HTTPS URL check among the shared helpers; xAI's device-response validation now calls oauth::is_https_url.
97ee5c6 to
ebb6984
Compare
…350) * docs(plans): mark AP0–AP4 shipped and map qq-auth modules (ENG-1066) The ledger records the merge commits for #341 and #343–#347 with their receipt; the plan's pre-AP1 shape section says what AP1–AP4 removed; the architecture source map lists qq-auth's modules (lib, state, backend, oauth, codex, xai) instead of lib.rs alone. * docs(plans): state exactly what AP1–AP4 consolidated (ENG-1066) Review of c183af0: the plan claimed AP1–AP4 removed the per-provider storage duplication, but token clients, stored formats, request-credential providers and error mappings remain for AP5/AP8. The architecture map assigned operation locks to oauth.rs; lib.rs acquires them and state.rs defines the guard.
AP1: share OAuth transport and bookkeeping helpers
Spec: docs/plans/auth-providers.md (AP1) Linear: ENG-1066 Stacked on: #341
Behaviour-preserving refactor. No user-visible change.
What changed
crates/qq-auth/src/oauth.rs: the HTTPS-only, redirect-free OAuth client; a bounded JSON body reader; the Unix clock;PROVIDER/PROFILEcredential names.codex.rsandxai.rscall these instead of their own copies (-76/+18 lines in the flows). Each keeps its own error mapping, so variants and messages are unchanged.How verified
cargo xtask check
Head
947b1873dbe3vsorigin/main; 8 changed file(s); scope: qq, qq-auth, qq-harness, xtask.cargo fmt --all -- --checkcargo xtask lintcargo clippy --color never -p qq -p qq-auth -p qq-harness -p xtask --all-targets --all-features -- -D warningscargo nextest run --color never --profile default -p qq -p qq-auth -p qq-harness -p xtaskAll gates passed in 59.7s.
cargo nextest run -p qq-auth: 77/77 before (base9463cc99) and after; no tests added or edited.cargo xtask smoke: 6/6.Compatibility