auth-hop prettify: keep the sign-in exchange on the pretty origin (campus#1295 cutover tail)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- google-cloud, python
- Domain
- authentication, backend
Research direction
Start with docs/url-namespacing.md and the rollout history in #1291 and #1295, then inspect campus.auth PUBLIC_URL and ttv2's CAMPUS_AUTH_URL/BASE_URL resolution. Verify the authorize, Google callback, and finalize URLs and auth-session cookie binding in both environments with an E2E sign-in. Done means every exchange URL stays on the matching pretty origin and obsolete railway callback entries can be retired.
Written by the indexing model from the issue text.
Description
Follow-up to the gateway-namespacing rollout (#1295 umbrella; spec: docs/url-namespacing.md, merged via #1319). ttv2's own plane now lives on campus.nyjc.app (PUBLIC_URL flipped 2026-11-26; finalize shapes registered on the timetable client), but the auth exchange hop still flashes the railway gateway origin: the authorize redirect is built from the consumer's configured auth root (BASE_URL/auth resolution on ttv2 → nyjc-campus.up.railway.app/auth/v1/authorize), and auth's Google federated callback is pinned to auth's PUBLIC_URL (nyjc-campus…/auth/v1/google/callback, registered on the prod GCP client).
Desired end state: the whole sign-in exchange — authorize, Google hop, callback, finalize — stays on campus.nyjc.app (dev: campus-dev.nyjc.app), matching the spec's one-hostname model.
Moves (ordering per #1291):
- Flip
campus.authPUBLIC_URL→https://campus.nyjc.app(dev →campus-dev.nyjc.app) — moves the Google federated callback. GCP authorized redirect URIs for the nyjc.app origins are already registered (JS Ng, 2026-11-26). - Flip the consumer-side auth entry point — ttv2's auth base (
CAMPUS_AUTH_URL/BASE_URLresolution) → the pretty origin — so the authorize hop stops flashing the railway origin. Same for admin/profile/classroom when they adopt (their own adoption issues). - Verify the auth-session cookie binding survives the move (authorize + callback must run on ONE origin per step 2 so the state cookie rides), then E2E-walk both environments.
- Retire the railway-gateway GCP callback entries (
nyjc-campus…/campus-development…/campusauth…) once nothing emits them.
Non-critical polish — the current flow works end-to-end and only flashes the railway origin mid-exchange.
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 39m
- Merged PRs (30d)
- 235
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nyjc-computing/campus
-
enhancement for-collaborators for-contributors
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nyjc-computing/campus#451 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
nyjc-computing/campus#1309 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
nyjc-computing/campus#1300 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
nyjc-computing/campus#1295 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
nyjc-computing/campus#1293 · 2 comments ·
Maintainers usually reply within 1 day
All issues in nyjc-computing/campus
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day