feat(web): sign in locally without Ricochet #105
No reviewers
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal!105
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/dev-signin-8090"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Local sign-in no longer needs Ricochet, so the manual setup drops Rust,
cargo installand the third terminal. Replaces #99.How: the
cal-devKeycloak client only returns tohttp://localhost:8090/oauth2/callback. The dev server now listens on 8090 itself, and a new/oauth2/callbackroute passes the query (code,state,iss, ...) on unchanged to/api/auth/callback, which is what Ricochet does. It redirects rather than calling the handler directly because the login cookie is scoped to/api/auth. The route returns 404 in production, where Keycloak goes through the real Ricochet at oauth.scottylabs.org; prod and staging are unchanged.npm run devrunsnext dev --turbo -p 8090;APP_URLinweb/.env.developmentandweb/.env.exampleishttp://localhost:8090.OAUTH_RELAY_URLis unchanged.localhost:8090(the dev secret already has it).git-hooksinput), without whichdevenv shelland every CI run fail since the Oct 19 lockfile update. The newer formatters normalize a few Markdown files andapi/pyproject.toml(whitespace only there).Tested: with no Ricochet running, the API plus
npm run devsigned in through Keycloak and landed on localhost:8090 with my courses and calendar. tsc, eslint, prettier, vitest (26/26), ruff, andprek run --all-files(gitleaks included) pass.On merge: the dev
FRONTEND_REDIRECT_URIin OpenBao moves tohttp://localhost:8090so the Google Calendar connect flow returns to the right port.Not needed with #104, where pitchfork starts Ricochet automatically.
Pull request closed