auth-hop prettify: keep the sign-in exchange on the pretty origin (campus#1295 cutover tail)

Open
#1,320 0 comments 0 reactions 0 assignees View on GitHub

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

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):

  1. Flip campus.auth PUBLIC_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).
  2. Flip the consumer-side auth entry point — ttv2's auth base (CAMPUS_AUTH_URL/BASE_URL resolution) → the pretty origin — so the authorize hop stops flashing the railway origin. Same for admin/profile/classroom when they adopt (their own adoption issues).
  3. 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.
  4. 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nyjc-computing/campus

All issues in nyjc-computing/campus

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.